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.
I need to convert following code to new layer based format: private void restoredTextEditor () { Settings.addInitializer (new CSSEditorSettings()); ClassLoader loader = this.getClass().getClassLoader(); // Registration of the editor kits to JEditorPane JEditorPane.registerEditorKitForContentType (CSSObject.MIME_TYPE, CSSEditorKit.class.getName(), loader); AllOptions ao = (AllOptions)AllOptions.findObject (AllOptions.class, true); ao.addOption (new CSSEditorOptions()); } /** */ private void uninstalledTextEditor () { // remove options AllOptions ao = (AllOptions)AllOptions.findObject (AllOptions.class, true); CSSEditorOptions ceo = (CSSEditorOptions) ao.findObject (CSSEditorOptions.class, false); if (ceo != null) ao.removeOption (ceo); } Now I must search editor module sources and guess its specification number.
Martin pointed me out on "hidden" documentation. Unfortunately the new schema does not support lazy Initializers. Consequently I must use reflection in Initializer code to prevent eager kit class loading.
Where is my dependency?
Implementation of lazy initializers is an enhancement *** This issue has been marked as a duplicate of 22086 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.