Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Starting Perspective
Starting Perspective [message #1809159] Wed, 10 July 2019 06:35 Go to next message
Eclipse UserFriend
Eclipse loads up a Perspective when started.

i have multiple perspectives in my RCP Application
eg:
welcome, contact, literature etc...

when i start my application the first time (no workspace exists yet)
the correct Perspective gets launched (welcome)

this Setting is coming from my WorkbenchAdvisor.getInitialWindowPerspectiveId()

further i read that i can specify the startup perspective by adding arguments to the application, so i added the following to the .product

-perspective my.welcome.id

my problem now is, that after starting the application and changing the perspective, eclipse seems to store information about the last open perspective and restores this perspective at the next launch.

how can i prevent this?
is it possible to delete the information about the last open Perspective ?
i do not want to disable complete restoring of layouts etc...

by the way: i am using Eclipse Neon

thanks in advance
Re: Starting Perspective [message #1811020 is a reply to message #1809159] Fri, 23 August 2019 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Did you try running with -clean or -clearPersistedData?

Otherwise, in your activator you can put code like this:

IWorkbenchPage page = PlatformUI.getWorkbench().showPerspective(PerspectiveFactory.ID,
PlatformUI.getWorkbench().getWorkbenchWindows()[0]);

Re: Starting Perspective [message #1816865 is a reply to message #1811020] Fri, 08 November 2019 12:16 Go to previous message
Eclipse UserFriend
.i do not want to delete all settings.

[Updated on: Wed, 13 November 2019 05:49] by Moderator

Previous Topic:RCP for plugin runs via popup-menu
Next Topic:launcher.openFile not working on RCP
Goto Forum:
  


Current Time: Sun Aug 31 08:34:34 EDT 2025

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

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

Back to the top