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: | Some tools actions are not correctly disabled if no node is activated. | ||
---|---|---|---|
Product: | projects | Reporter: | iformanek <iformanek> |
Component: | Generic Infrastructure | Assignee: | Martin Ryzl <mryzl> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | mmetelka |
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
iformanek
2000-08-02 09:44:37 UTC
The enable() methods in these actions do not check for empty array of activated nodes, and return true in such case: (from Editor's JCUpdateAction) protected boolean enable(Node[] activatedNodes) { boolean ok = true; for (int i = 0; i < activatedNodes.length; i++) { if (activatedNodes[i].getCookie(DataFolder.class) == null) { ok = false; break; } } return ok; } These are really 2 separate bugs - one in Projects, on in Editor module, but as the fix is simple, will keep both here. I have partly fixed this bug by fixing the editor part in JCUpdateAction. Martin can you fix the "Add to project" action? Resolved for 3.4.x or earlier, no new info since then -> closing. |