Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 89282 - Add MimeLookup.getLookup(String mimePath)
Add MimeLookup.getLookup(String mimePath)
Product: editor
Classification: Unclassified
Component: -- Other --
PC Linux
: P2 (vote)
: 6.x
Assigned To: apireviews
Depends on:
  Show dependency treegraph
Reported: 2006-11-14 10:33 UTC by Miloslav Metelka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:

Patch (test and apichanges not included) (1.45 KB, patch)
2006-11-14 10:35 UTC, Miloslav Metelka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2006-11-14 10:33:36 UTC
I propose to add

    public static Lookup getLookup(String mimePath) {

for easier operation with the mime lookup. For example LanguagePath only has
mime-path as a string (to not have a direct dependency on mime lookup) so this
method would help to have simpler code. Also as the mimePath can in fact be a
single mime-type (described in javadoc of the attached patch) this would make
the dealing with the mime lookup easier in such case.
Comment 1 Miloslav Metelka 2006-11-14 10:35:33 UTC
Created attachment 36037 [details]
Patch (test and apichanges not included)
Comment 2 Vitezslav Stejskal 2006-11-14 21:02:06 UTC
Fine by me. It's needed in 99% of situations when using ML.
Comment 3 Jiri Prox 2007-09-17 20:17:50 UTC
Obsolete milestone, please reevaluate
Comment 4 Miloslav Metelka 2007-09-18 08:27:02 UTC
Oops. It was reviewed a long ago but I forgot to commit it. Fixed.
Checking in;
/cvs/editor/mimelookup/,v  <--
new revision: 1.11; previous revision: 1.10
Checking in src/org/netbeans/api/editor/mimelookup/;
/cvs/editor/mimelookup/src/org/netbeans/api/editor/mimelookup/,v  <--
new revision: 1.10; previous revision: 1.9
Checking in arch/apichanges.xml;
/cvs/editor/mimelookup/arch/apichanges.xml,v  <--  apichanges.xml
new revision: 1.2; previous revision: 1.1

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo