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.
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 themselves) 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.
The MimeLookup will be an independent module with a official API. It will also support extraction of the editor settings from the present editor module.
The prototype is ready in the 'editor_api' branch. The new module exists under cvs/editor/mimelookup
mimelookup module was already integrated into the [maintrunk]