Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » command org.eclipse.ui.window.resetPerspective not active
command org.eclipse.ui.window.resetPerspective not active [message #490299] Thu, 08 October 2009 05:37 Go to next message
Eclipse User
Originally posted by: stanitzok.hansaluftbild.de

Hi there,

i have a small rcp application with some default commands like
closePerspective, showPerspectives, etc. Everything works as expected
but only the commands resetPerpective and savePerspective are deactivated.

is someone out there who can tell my why?

thx
Re: command org.eclipse.ui.window.resetPerspective not active [message #490325 is a reply to message #490299] Thu, 08 October 2009 07:18 Go to previous message
Christian is currently offline Christian
Messages: 72
Registered: July 2009
Member
Thorsten Stanitzok schrieb:
> Hi there,
>
> i have a small rcp application with some default commands like
> closePerspective, showPerspectives, etc. Everything works as expected
> but only the commands resetPerpective and savePerspective are deactivated.
>
> is someone out there who can tell my why?
>
> thx

its a mysterie to me... but some of the provided commands don't come
with handlers
so for reset perspective to work you need to create and register it
first in your ActionBarAdvisor same is btw with help command..

i.e.

protected void makeActions(IWorkbenchWindow window) {
showHelpAction = ActionFactory.HELP_CONTENTS.create(window);
register(showHelpAction);
resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
register(resetPerspectiveAction);
}
Previous Topic:How do I restrict or limit the size of a MasterDetailsBlock
Next Topic:PreferencePage via org.eclipse.ui.window.preferences: AssertionFailedException
Goto Forum:
  


Current Time: Fri Apr 18 11:57:12 EDT 2014

Powered by FUDForum. Page generated in 0.01990 seconds