Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Starting Perspective
Starting Perspective [message #1809159] Wed, 10 July 2019 10:35 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
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 18:00 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 449
Registered: July 2009
Senior Member

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 17:16 Go to previous message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
.i do not want to delete all settings.

[Updated on: Wed, 13 November 2019 10:49]

Report message to a moderator

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


Current Time: Wed Oct 21 11:23:07 GMT 2020

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

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

Back to the top