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

Summary: Create MimeLookup
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: -- Other --Assignee: Martin Roskanin <mroskanin>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on: 59784    
Bug Blocks:    

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
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.
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
module.
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]