How to extend "Switch Workspace" in custom CNF-navigator [message #992056] |
Thu, 20 December 2012 14:13 |
Eclipse User |
|
|
|
I've customized the CNF and now want to have "Switch Workspace" appear under the "File" menu item. I would like to implement this by extension.
My State: I see the label, but I can't activate it!?!?!
My plugin.xml snippet:
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu">
<menu
id="idFile"
label="File"
mnemonic="F">
<command
commandId="org.eclipse.ui.file.openWorkspace"
label="Switch Workspace"
style="push">
</command>
</menu>
.
. Actually, I expected the above to be sufficient; e.g., "Save" works
. with corresponding script code)
. Then I tried adding the following ... (didn't help)
.
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.ui.category.file"
id="org.eclipse.ui.file.openWorkspace"
name="Switch Workspace"
description="Switch to different Workspace">
</command>
</extension>
Can anyone help me on this one? I've spent hours searching, but haven't found any documentation. Sorry if some is available (in this case, please send me the link).
Bernard
|
|
|
Powered by
FUDForum. Page generated in 0.14219 seconds