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 10924 - Changes in HtmlLoader.
Summary: Changes in HtmlLoader.
Status: CLOSED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-02 08:40 UTC by Jan Zajicek
Modified: 2009-05-18 10:45 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:40:33 UTC
Please change your HtmlLoader 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 _ rkubacki 2001-04-02 10:01:30 UTC
fixed in NB3.2 and main trunk
Comment 2 Jan Chalupa 2001-05-05 22:30:00 UTC
Target milestone -> 3.2
Comment 3 Quality Engineering 2003-07-01 09:20:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.