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.
Summary: | Slow PropertiesAction.enable() | ||
---|---|---|---|
Product: | platform | Reporter: | _ rkubacki <rkubacki> |
Component: | Actions | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | API_REVIEW_FAST, PERFORMANCE |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | proposed change |
Description
_ rkubacki
2005-11-08 17:34:37 UTC
Created attachment 26960 [details]
proposed change
I attched a proposed semantic change of PropertiesAction.enable(), this makes PropertiesAction.enable() return statically true iff given nodes are not null. The change saves a lot of useless creating property set when create popup menu of a node. It'll cause a empty Properties sheet when PropertiesAction is invoked on a node w/o properties. I'm going to integrate now. Checking in openide/actions/src/org/openide/actions/PropertiesAction.java; /shared/data/ccvs/repository/openide/actions/src/org/openide/actions/PropertiesAction.java,v <-- PropertiesAction.java new revision: 1.2; previous revision: 1.1 done RCS file: /shared/data/ccvs/repository/openide/actions/test/unit/src/org/openide/actions/PropertiesActionTest.java,v done Checking in openide/actions/test/unit/src/org/openide/actions/PropertiesActionTest.java; /shared/data/ccvs/repository/openide/actions/test/unit/src/org/openide/actions/PropertiesActionTest.java,v <-- PropertiesActionTest.java initial revision: 1.1 done |