[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How do I get control on Window->Open Perspective menu item

Hi Dave, 

Did you try a perspective listener? 


PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPerspectiveListener(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