Skip to main content



      Home
Home » Newcomers » Newcomers » How to extend "Switch Workspace" in custom CNF-navigator(How to extend "Switch Workspace" in custom CNF-navigator rcp application)
icon9.gif  How to extend "Switch Workspace" in custom CNF-navigator [message #992056] Thu, 20 December 2012 14:13
Eclipse UserFriend
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
Previous Topic:Debugger won't stop at breakpoints
Next Topic:after import existing jsf project aplication not work
Goto Forum:
  


Current Time: Sat Jul 05 11:01:55 EDT 2025

Powered by FUDForum. Page generated in 0.14219 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top