This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59009 - Create MimeLookup
Summary: Create MimeLookup
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Roskanin
Depends on: 59784
  Show dependency tree
Reported: 2005-05-18 09:53 UTC by Miloslav Metelka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2005-05-18 09:53:25 UTC
On many places throughout the editor modules the following use case appears:
1. Result of a xml layer folder for a certain mime-type folder (e.g. under
Editors/text/x-java) needs to be read and instantiated
2. The content may get merged (and sorted) with the global-level folder under
Editors/text/base folder.

For example:
Popup and Toolbar actions (specified either through the actions names or actions
Fold Managers
Side Bars
new Completion providers

We propose to create a generic functionality to cover this use case called
MimeLookup. It will allow to lookup for a specific class that will be searched
in the particular folder and returned as Lookup.Result.
The MimeLookup will allow mime-type nesting to cover language embedding e.g.
java being embedded in jsp etc.
Comment 1 Miloslav Metelka 2005-05-18 09:56:09 UTC
The MimeLookup will be an independent module with a official API. 
It will also support extraction of the editor settings from the present editor
Comment 2 Martin Roskanin 2005-06-09 14:02:57 UTC
The prototype is ready in the 'editor_api' branch. The new module
exists under cvs/editor/mimelookup
Comment 3 Martin Roskanin 2005-08-16 09:41:28 UTC
mimelookup module was already integrated into the [maintrunk]