Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:13
Bernard Wald is currently offline Bernard WaldFriend
Messages: 1
Registered: December 2012
Junior Member
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: Fri Apr 16 15:40:18 GMT 2021

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

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

Back to the top