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 49175 - "Window -> Select Document in -> Select Node in Projects" ?!
Summary: "Window -> Select Document in -> Select Node in Projects" ?!
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: REGRESSION
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-09-16 21:13 UTC by Jesse Glick
Modified: 2006-03-24 10:00 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (3.62 KB, patch)
2004-09-21 08:23 UTC, Jiri Rechtacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-09-16 21:13:43 UTC
040915 custom. The "W -> S D in" submenu now has items

1. Select Node in Projects
2. Select Node in Files
3. Favorites
4. Versioning

Should read

1. Projects
2. Files
3. Favorites
4. Versioning
Comment 1 Petr Hrebejk 2004-09-20 17:14:55 UTC
Please rollback the fix for the issue #48778 which caused this.
Comment 2 Jesse Glick 2004-09-20 17:40:52 UTC
Rather than rolling back the fix of issue #48778, suggest you just
change the Presenter.Menu to use a different label than the action name.
Comment 3 Jiri Rechtacek 2004-09-21 08:23:53 UTC
Created attachment 17778 [details]
proposed patch
Comment 4 Jesse Glick 2004-09-21 20:51:38 UTC
In the patch, better to either call super.getMenuPresenter, or
explicitly use Actions.connect; "bare" JMenuItem semantics misses some
subtler things handled by Actions we might as well preserve, e.g.
automatic mnemonic handling.
Comment 5 Petr Hrebejk 2004-09-24 13:21:47 UTC
Hmm, using Actions.connect() should be the correct way. However if I
use it then there seems to be no way of having different name for the
Presenter.Menu and the Action, which is what we need to achieve.
That's bad. I have to implement it myself (with empty icon,
Mneonics.setText() etc.). Any ideas?
Comment 6 Jiri Rechtacek 2004-10-07 10:29:23 UTC
the attached patch has been applied.

Checking in src/org/netbeans/modules/project/ui/actions/Bundle.properties;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.18; previous revision: 1.17
done
Checking in
src/org/netbeans/modules/project/ui/actions/SelectNodeAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/SelectNodeAction.java,v
 <--  SelectNodeAction.java
new revision: 1.4; previous revision: 1.3
done
Comment 7 Marian Mirilovic 2005-12-20 15:47:22 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.