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.
My filesystem subclass vcscore.VCSFilesystem, and registers itself under Templates/Mount/VCS via the module layer. After these steps, my module mountwizard can be accessed from Versioning -> Mount Version Control-> My Version Control System. How do I set the mnemonic for it? Discussions on nbdev -- > Gabriel Tichy wrote: > Jaroslav Tulach wrote: > > Martin Entlicher wrote: > > > > > There is no support for mnemonics I know of. There are no mnemonics for other > > > filesystems as well (in Filesystems -> Mount). Does anyone from UI/HIE know if > > > this is being planned? > > > Probably the API for XML filesystem would have to be extended to interpret > > > something like Templates/Mount/VCS_Mnemonic=V in > > > SystemFileSystem.localizingBundle. > > > > Does not Templates/Mount/VCS=&VCS work? It could. > > y. > AFAIK, it doesn't. > > Gabo > > Just tried. No, it doesn't work. Sophie
...
CVS folks, could we do anything with that?
In Filesystems -> Mount there are no mnemonics either. Versioning -> Mount VCS provides the *same* functionality. It should be fixed in openide/core first, otherwise it would not be consistent. Therefore moving to core. BTW: why can't you just use arrows? It's quite natural and simple.
Just updating version.
as Martin Entlicher indicated this is "by design". No way to fix it for NB 3.3 because the fix would require API changes. Too late to do it now. Decreased prio to P4 because the user can use arrow keys, then enter to choose the menuitem
Reassigned to vcscore. Reasons: I think the problem is there. VcsMountFromTemplate action uses as menu presenter MenuView.Menu which is wrong. MenuView class was designed for use in popup only (see javadoc), i.e. primarully in Explorer only (therefore it resides in package explorer only), is designed to work with nodes. Showing just nodes displayNames, not dealing with mnemonics. So there soudn't be any redesign made to MenuView, but to VcsMountFromTemplateAction. Vcscore module should use another presenter for menu, not MenuView. I guess the creation of the artificial node hierarchy representing the vcs template folder thus making it for MenuView to fit is harmless.
Well, I can think of some fix to vcscore, but it will not fix the problem on a general base. The request for it to be fixed in core is still valid.
I'll do a fix specific to VcsMountFromTemplateAction, so that the mnemonics will appear only on the menu, not on the popup.
Fixed in the main trunk and release33 branch. Attribute VcsMountAction.mnemonic introduced. The value should be a resource bundle (similar to SystemFileSystem.localizingBundle). The value in the resource bundle should be <name-of-the-fileobject>_m (You may see vcscore/src/org/netbeans/modules/vcscore/resources/mf-layer.xml)
Fine, verified in development build #200112050331 of NetBeans 3.3.1.
Resolved for 3.4.x or earlier, no new info since then -> closing.