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.
I've noticed a new "Refresh All Filesystems" menu in the right click for the Filesystems node in the explorer. Since it's in the Filesystems node's menu, "Filesystems" is redundant. Additionally, to be consistent with Build All and Compile All, I suggest naming it "Refresh All".
I agree. A contextual menu items should not name the context as it is obvious from the node they are invoked on. So, the main menu item should stay named "Refresh All Filesystems", but the contextual menu item should be name "Refresh All"
Jesse you added this action if I remember correctly. Where is its bundle?
grep made it: LAB_refresh_all_filesystems in org/netbeans/core/actions
Fixed in main trunk. Modified: /cvs/core/src/org/netbeans/core/actions/Bundle.properties r.1.128
You just changed the title in the File menu too. Reread Jano's comment. Hint: implement Presenter.Popup to use a special label "Refresh All", and leave Action.NAME as "Refresh All Filesystems".
Ooops. Thanks. I will add new label to be used by popup presenter. I tried: /** Get a menu item that can present this action in a public JMenuItem getPopupPresenter() { JMenuItem item = new JMenuItem(); String text = NbBundle.getMessage(RefreshAllFilesystemsAction.class, "LAB_refresh_all_filesystems_popup"); Actions.connect(item, this, true); Actions.setMenuText(item, text, true); return item; } Unfortunately Actions.setMenuText() has NO effect. (I tried to call after or before Actions.connect() but no success. It uses original action label even if text variable contains truncated version of action label. Any idea?
I could use JMenuItem methods directly: item.setAction(this); item.setText(Actions.cutAmpersand(text)); item.setMnemonic(KeyEvent.VK_R); Is this possible for popup menu?
Sure, just make the JMenuItem directly.
Fixed in main trunk 2003/06/27. I just forgot to mark issue here as FIXED. Modified: /cvs/core/src/org/netbeans/core/actions/RefreshAllFilesystemsAction.java r.1.2
verified in [nb_dev](20030904)