Skip to main content


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 09:37 Go to next message
Eclipse UserFriend
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 11:18 Go to previous message
Christian is currently offline ChristianFriend
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: Thu Apr 25 08:12:19 GMT 2024

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

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

Back to the top