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

Summary: Changes in Loader.
Product: java Reporter: Jan Zajicek <jzajicek>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

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.