[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Stopping perspective cahnge

Hi,

you may add a PerspectiveListener to the WorkbenchWindow. I'm not sure
but i believe you may only get notified after the perspective was
already switched.

A much better approach would be the usage of activities. Look for the
extension point "org.eclipse.ui.activities". This gives you control over
the visibility of ui elemenents. It's better a user doesn't see denied
perspectives instead getting messages.


vijay schrieb:
> Hi,
> 
> How can i stop a perspective change based on the particular condition,
> 
> My problem is I have an application which has many perspectives 
> connected to different servers,
> If a user who has no rights for a particular perspective wants to go to
> that perspective i should show a msg and then activate the current
> perspective on which he was.
> 
> Thanks
> 
> 
> 
> 
> 
> 
> 
>