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.
The MimePath internally holds a list of inherited Mime paths, which are used e.g. for MimeLookup or Preferences fallbacks. This information proved rather useful, and since there's no API to get the information, it is obtained using j.l.reflection on at least 3 places. * SettingsProvider in editor.codetemplates * CompositeFCS, PreferencesImpl in editor.settings.storage * MimePathLookup in editor.mimelookup Possibly there are some more usages, and I intend to add some more in code folding and/or CSL. So I think the method // return the inherited mime type, if any, for the content public String getInheritedType(); // returns all the included MimePaths including this one. public List<MimePath> getIncludedPaths(); should be made added. All current usages work with MimePaths not folders - except MimeLookup implementation itself. Existing clients that use reflection should be updated. Please see the proposed diff for details
Created attachment 131388 [details] Proposed changes
No objections so far, going to push
Changeset: eaddbb772461 Author: Svata Dedic <sdedic@netbeans.org> Date: 2013-02-27 09:46 Message: #226122: added getIncludedPaths and getInheritedType
Integrated into 'main-golden', will be available in build *201303032300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/eaddbb772461 User: Svata Dedic <sdedic@netbeans.org> Log: Issue #226122 - Enable to discover parent MIME type (path): fixed #226122: added getIncludedPaths and getInheritedType