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 10932 - Changes in Loader.
Summary: Changes in Loader.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-02 08:57 UTC by Jan Zajicek
Modified: 2003-06-30 16:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zajicek 2001-04-02 08:57:12 UTC
Please change your ClassDataLoader in 3.2 and Dev according to the following
changes:

http://www.netbeans.org/www-nbdev/msg05184.html

There is an typical example how to make this change:

Old code:
    protected void initialize () {
        setDisplayName (NbBundle.getMessage (NbmDataLoader.class,"LBL_loaderName"));
        setActions (new SystemAction[] {
                        SystemAction.get (OpenAction.class),
                        SystemAction.get (PropertiesAction.class),
                    });
        // some other code
    }

New code:
    protected void initialize () {
        // some other code
    }

    protected SystemAction[] defaultActions () {
        return new SystemAction[] {
                        SystemAction.get (OpenAction.class),
                        SystemAction.get (PropertiesAction.class),
                    };
    }

    protected String defaultDisplayName () {
        return NbBundle.getMessage (NbmDataLoader.class, "LBL_loaderName");
    }

Please don't store default actions in static variables - because of
performance.
Comment 1 Svata Dedic 2001-04-02 16:26:00 UTC
Fixed in dev-159, 3.2.19
Comment 2 Jan Chalupa 2001-05-05 20:18:48 UTC
Target milestone -> 3.2
Comment 3 Quality Engineering 2003-06-30 16:44:04 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.