Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 195567 Details for
Bug 345050
[Workbench] Durable folder flag is not remembered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
durable_folder_3.7.patch (text/plain), 3.58 KB, created by
Marco Maccaferri
on 2011-05-13 05:09:24 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Marco Maccaferri
Created:
2011-05-13 05:09:24 EDT
Size:
3.58 KB
patch
obsolete
>Index: Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java,v >retrieving revision 1.84 >diff -u -r1.84 IWorkbenchConstants.java >--- Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java 24 Mar 2010 15:09:45 -0000 1.84 >+++ Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java 13 May 2011 09:06:20 -0000 >@@ -348,4 +348,6 @@ > //Colors > public static final String COLOR_HIGHLIGHT = "org.eclipse.ui.highlight"; //$NON-NLS-1$ > >+ public static final String TAG_DURABLE = "durable"; //$NON-NLS-1$ >+ > } >Index: Eclipse UI/org/eclipse/ui/internal/ViewSashContainer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewSashContainer.java,v >retrieving revision 1.16 >diff -u -r1.16 ViewSashContainer.java >--- Eclipse UI/org/eclipse/ui/internal/ViewSashContainer.java 16 Mar 2007 18:00:32 -0000 1.16 >+++ Eclipse UI/org/eclipse/ui/internal/ViewSashContainer.java 13 May 2011 09:06:20 -0000 >@@ -118,10 +118,14 @@ > folder.setID(partID); > result.add(folder.restoreState(childMem > .getChild(IWorkbenchConstants.TAG_FOLDER))); >- ContainerPlaceholder placeholder = new ContainerPlaceholder( >- partID); >- placeholder.setRealContainer(folder); >- part = placeholder; >+ if (!folder.getDurable()) { >+ ContainerPlaceholder placeholder = new ContainerPlaceholder( >+ partID); >+ placeholder.setRealContainer(folder); >+ part = placeholder; >+ } else { >+ part = folder; >+ } > } > // 1FUN70C: ITPUI:WIN - Shouldn't set Container when not active > part.setContainer(this); >Index: Eclipse UI/org/eclipse/ui/internal/ViewStack.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewStack.java,v >retrieving revision 1.31 >diff -u -r1.31 ViewStack.java >--- Eclipse UI/org/eclipse/ui/internal/ViewStack.java 25 May 2009 20:52:11 -0000 1.31 >+++ Eclipse UI/org/eclipse/ui/internal/ViewStack.java 13 May 2011 09:06:20 -0000 >@@ -13,7 +13,9 @@ > *******************************************************************************/ > package org.eclipse.ui.internal; > >+import org.eclipse.core.runtime.IStatus; > import org.eclipse.jface.action.IMenuManager; >+import org.eclipse.ui.IMemento; > import org.eclipse.ui.internal.presentations.PresentablePart; > import org.eclipse.ui.internal.presentations.PresentationFactoryUtil; > import org.eclipse.ui.internal.presentations.SystemMenuDetach; >@@ -95,6 +97,11 @@ > return false; > } > >+ // Durable folders should not move >+ if (durable) { >+ return false; >+ } >+ > // We need to search if one of the presentations is not moveable > // if that's the case the whole folder should not be moveable > IStackPresentationSite presenationSite; >@@ -227,4 +234,17 @@ > public boolean getDurable () { > return this.durable; > } >+ >+ public IStatus saveState(IMemento memento) { >+ memento.putBoolean(IWorkbenchConstants.TAG_DURABLE, durable); >+ return super.saveState(memento); >+ } >+ >+ public IStatus restoreState(IMemento memento) { >+ Boolean result = memento.getBoolean(IWorkbenchConstants.TAG_DURABLE); >+ if (result != null) { >+ this.durable = result.booleanValue(); >+ } >+ return super.restoreState(memento); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 345050
: 195567