Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IWorkbenchPage.getPartState() always returns RESTORED
IWorkbenchPage.getPartState() always returns RESTORED [message #508038] Fri, 15 January 2010 15:57 Go to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 657
Registered: July 2009
Senior Member
On my Mac,
org.eclipse.ui.IWorkbenchPage.getPartState(IWorkbenchPartRef erence)
always returns IWorkbenchPage.STATE_RESTORED, even if a view is
minimized. Am I missing something?

Thanks
Jan
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: IWorkbenchPage.getPartState() always returns RESTORED [message #508346 is a reply to message #508038] Mon, 18 January 2010 13:53 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jan Kšoehnlein wrote:
> On my Mac,
> org.eclipse.ui.IWorkbenchPage.getPartState(IWorkbenchPartRef erence)
> always returns IWorkbenchPage.STATE_RESTORED, even if a view is
> minimized. Am I missing something?

Please open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

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


Re: IWorkbenchPage.getPartState() always returns RESTORED [message #1067601 is a reply to message #508346] Tue, 09 July 2013 14:27 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
I have the same issue.
final IWorkbenchPage activePage = HandlerUtil.getActiveWorkbenchWindowChecked(event).getActivePage();
		
final IViewReference propertyViewReference = activePage.findViewReference(SplPropertyView.ID);
if (activePage.getPartState(propertyViewReference) == IWorkbenchPage.STATE_MINIMIZED) {
    activePage.setPartState(propertyViewReference, IWorkbenchPage.STATE_RESTORED);
}

The condition is never met, even when the view is stacked with another views in a folder and the folder is minimized to the trim.
Previous Topic:[Kepler] saveState and restoreState of WorkbenchAdvisor not called
Next Topic:Jetty Disables OSGi Services
Goto Forum:
  


Current Time: Sun Nov 23 10:11:36 GMT 2014

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

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