Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IWorkbenchPage.getPartState() always returns RESTORED
IWorkbenchPage.getPartState() always returns RESTORED [message #508038] Fri, 15 January 2010 10:57 Go to next message
Eclipse UserFriend
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 08:53 Go to previous messageGo to next message
Eclipse UserFriend
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 10:27 Go to previous message
Eclipse UserFriend
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: Sat Mar 15 17:58:36 EDT 2025

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

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

Back to the top