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 75549 Details for
Bug 97901
[ViewMgmt] [RCP] tab group with non-closeable view can still be moved
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]
Code identified
patch.txt (text/plain), 3.29 KB, created by
Thomas Schindl
on 2007-08-07 11:53:12 EDT
(
hide
)
Description:
Code identified
Filename:
MIME Type:
Creator:
Thomas Schindl
Created:
2007-08-07 11:53:12 EDT
Size:
3.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >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.28 >diff -u -r1.28 ViewStack.java >--- Eclipse UI/org/eclipse/ui/internal/ViewStack.java 9 Apr 2007 20:41:35 -0000 1.28 >+++ Eclipse UI/org/eclipse/ui/internal/ViewStack.java 7 Aug 2007 15:51:39 -0000 >@@ -29,13 +29,13 @@ > * is always a PartSashContainer (or null), and its children are always either PartPlaceholders or ViewPanes. > * This contains the real behavior and state for stacks of views, although the widgets for the tabs are contributed > * using a StackPresentation. >- * >- * TODO: eliminate ViewStack and EditorStack. PartStack should be general enough to handle editors >- * and views without any specialization for editors and views. The differences should be in the >+ * >+ * TODO: eliminate ViewStack and EditorStack. PartStack should be general enough to handle editors >+ * and views without any specialization for editors and views. The differences should be in the > * presentation and in the PartPanes themselves. >- * >+ * > * TODO: eliminate PartPlaceholder. Placeholders should not be children of the ViewStack. >- * >+ * > */ > public class ViewStack extends PartStack { > >@@ -48,7 +48,7 @@ > private SystemMenuFastView fastViewAction; > > private SystemMenuDetach detachViewAction; >- >+ > public void addSystemActions(IMenuManager menuManager) { > appendToGroupIfPossible(menuManager, > "misc", new UpdatingActionContributionItem(fastViewAction)); //$NON-NLS-1$ >@@ -92,12 +92,25 @@ > 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; >+ >+ if( (presenationSite = getPresentationSite()) != null ) { >+ IPresentablePart[] parts = presenationSite.getPartList(); >+ for( int i = 0; i < parts.length; i++ ) { >+ if( !presenationSite.isPartMoveable(parts[i]) ) { >+ return false; >+ } >+ } >+ } >+ > return !perspective.isFixedLayout(); > } > > protected void updateActions(PresentablePart current) { > ViewPane pane = null; >- >+ > if (current != null && current.getPane() instanceof ViewPane) { > pane = (ViewPane) current.getPane(); > } >@@ -111,7 +124,7 @@ > * Sets the minimized state for this stack. The part may call this method to > * minimize or restore itself. The minimized state only affects the view > * when unzoomed. >- * >+ * > * This implementation is specific to the 3.3 presentation's > * min/max story; otherwise it just forwards the call. > */ >@@ -130,11 +143,11 @@ > maxStack.setState(IStackPresentationSite.STATE_RESTORED); > } > } >- >+ > fvm.restoreToPresentation(getID()); > } > } >- >+ > super.setMinimized(minimized); > } > >@@ -179,7 +192,7 @@ > /** > * Get the presentation for testing purposes. This is for testing > * purposes <b>ONLY</b>. >- * >+ * > * @return the presentation in use for this view stack > * @since 3.2 > */
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 97901
: 75549