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 21299 - Too eager kit class loading
Summary: Too eager kit class loading
Status: CLOSED DUPLICATE of bug 22086
Alias: None
Product: usersguide
Classification: Unclassified
Component: Editor (show other bugs)
Version: -FFJ-
Hardware: PC All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 21053
  Show dependency tree
 
Reported: 2002-03-07 12:56 UTC by _ pkuzel
Modified: 2007-11-05 13:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2002-03-07 12:56:37 UTC
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.
Comment 1 _ pkuzel 2002-03-07 14:10:27 UTC
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.
Comment 2 _ pkuzel 2002-03-07 14:40:42 UTC
Where is my dependency?
Comment 3 Martin Roskanin 2002-06-05 15:50:06 UTC
Implementation of lazy initializers is an enhancement

*** This issue has been marked as a duplicate of 22086 ***
Comment 4 Quality Engineering 2003-06-30 18:01:32 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-06-30 18:08:27 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.