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 10922 - Changes in Loader.
Summary: Changes in Loader.
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: antlr (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-02 08:33 UTC by Jan Zajicek
Modified: 2001-10-14 13:55 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:33:02 UTC
Please change your GLoader 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 _ derrick 2001-10-14 13:55:31 UTC
Updated GLoader.java as per description.