Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » workbench settings
workbench settings [message #518871] Fri, 05 March 2010 10:46 Go to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,

how to I affect the viewparts name presented, until the view has been
loaded? The label gets restored from the workbench.xml settings, but I
like to affect this presented label dependent on an internal state.

Scenario: I have a connection manager that holds a state. The view might
trigger the connection manager changing its state. The state change is
reflected as viewparts partName change. After that I'm selecting another
view stacking in front of my view and restart the workbench. Now my
views gets not instantiated, since its not activated yet. But the views
name remains its last presented state.

Resetting the views name on dispose does not help either.

Thanks in advance,
Sven
Re: workbench settings [message #518987 is a reply to message #518871] Fri, 05 March 2010 11:06 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The view name is saved in
org.eclipse.ui.internal.ViewFactory.saveViewState(IMemento,
IViewReference, MultiStatus) which is called before the parts are close
and disposed.

I suspect part closed or perspective closed or window closed would
present the same problem, the view name has already been saved.

You could try adding a org.eclipse.ui.IWorkbenchListener that in the
preShutdown reset the partName of any instantiated views that you care
about ... but if another workbench listeners vetos the shutdown then you
would need to fix the part names.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Eclipse 3.5 HANGS on Solaris 10 x86
Next Topic:cycle in classpath of two plugins results in error during feature export - not when using the plugin
Goto Forum:
  


Current Time: Sat Dec 07 15:02:58 GMT 2024

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

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

Back to the top