Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Re: Forcing a perspective to always load at app startup
Re: Forcing a perspective to always load at app startup [message #482813] Fri, 28 August 2009 08:05
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
When you do not persist state in
ApplicationWorkbenchAdvisor.initialize() do
configurer.setSaveAndRestore(false) you always get the appliucation
default perspective from
ApplicationWorkbenchAdvisor.getInitialWindowPerspectiveId().

We looked at preventing certain perspectives to be chosen using
perspectiveShortcuts, but (using 3.2 we cannot prevent the show of
Other...). Capabilities also did not work.

In the end we dropped the perspective bar and persisting state and
created our own Perpective menu, a subclassed filtering Perspective
chooser using our own extension point to match perspective ID to user
role or allowed function, and added a Home page like perspective with a
large list of allowed perspectives that always opens on startup.

Maarten

Eric Rizzo wrote:
> Dave wrote:
>>
>> Is there a way to actually prevent the user from switching to a given
>> perspective via the Perspective Bar ?? For instance, if the
>> application user has not been granted some specific privilege, I would
>> like to dis-allow them from switching to a certain perspective.
>
> Capabilities (aka, Activities) might be of use to you. See
> http://pookzilla.net/wp/2005/12/context-capability-and-persp ective-2/
> http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/workbench_advext_activities.htm
>
> http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.user/reference/ref-capabilitiespref.htm
>
>
> Hope this helps,
> Eric
Previous Topic:Possible to modify the default way an error is displayed?
Next Topic:Application startup problem in 3.5 with login dialog befor workbench start
Goto Forum:
  


Current Time: Fri Jan 24 14:22:21 GMT 2025

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

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

Back to the top