Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How do I get control on Window->Open Perspective menu item
How do I get control on Window->Open Perspective menu item [message #485388] Fri, 11 September 2009 15:21 Go to next message
Dave is currently offline DaveFriend
Messages: 28
Registered: July 2009
Junior Member
When the user goes to the Window->Open Perspective menu item and selects a
perspective related to my application, I would like to prompt the user for
input required by the perspective before it is displayed. Is there a way
for me to set it up so that my action receives control so that I can
display a dialog and then open the perspective myself? Or is there
another recommended way to achieve the behavior I want?

Regards,
Dave
Re: How do I get control on Window->Open Perspective menu item [message #485583 is a reply to message #485388] Sun, 13 September 2009 22:41 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Dave,

Did you try a perspective listener?


PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPers pectiveListener(listener)

Best regards,

Wim

> When the user goes to the Window->Open Perspective menu item and selects a
> perspective related to my application, I would like to prompt the user for
> input required by the perspective before it is displayed. Is there a way
> for me to set it up so that my action receives control so that I can
> display a dialog and then open the perspective myself? Or is there
> another recommended way to achieve the behavior I want?
>
> Regards,
> Dave
Previous Topic:Remove Minimize bar
Next Topic:org.eclipse.ui.edit.copy NotHandledException
Goto Forum:
  


Current Time: Tue Apr 23 10:11:47 GMT 2024

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

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

Back to the top