[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Stopping perspective cahnge
|
- From: Holger Spiering <spiering@xxxxxxxx>
- Date: Fri, 13 Feb 2009 21:34:18 +0100
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
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
>
>
>
>
>
>
>
>