Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 72280

Summary: [Perspectives] Perspective extensions that stack on top of a folder ID cause the original folder to disappear
Product: [Eclipse Project] Platform Reporter: Stefan Xenos <sxenos>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P5 Keywords: helpwanted
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 118693    

Description Stefan Xenos CLA 2004-08-19 11:18:27 EDT
Create a perspective that contains one stack (with a named folder ID). Create a
perspective extension that stacks on top of that stack by referencing the folder
ID (but not one of the views in the folder). Notice that the resulting
perspective will contain the view that was added in the perspective extension
but NOT the view from the original perspective.

Try this perspective:

public class RecursiveStackingPerspectiveFactory implements IPerspectiveFactory {

	public static final String FOLDER_ID =
"org.eclipse.ui.test.dnd.RecursiveStackingPerspectiveFactory.mystack"; 
	
	/* (non-Javadoc)
	 * @see
org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	public void createInitialLayout(IPageLayout layout) {

        IFolderLayout folder = layout.createFolder(FOLDER_ID,
                IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA);
        folder.addView(IPageLayout.ID_OUTLINE);
	}

}

      <perspective
            class="org.eclipse.ui.tests.dnd.RecursiveStackingPerspectiveFactory"
            name="Recursive stacking test perspective"
            id="org.eclipse.ui.tests.recursiveStackingPerspective"/>    


And this extension:

   <extension
         id="org.eclipse.ui.tests.recursiveStackingPerspective.extension1"
         name="Recursive stacking extension"
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
targetID="org.eclipse.ui.tests.recursiveStackingPerspective">
         <view
               closeable="true"
               moveable="true"
               visible="true"
              
relative="org.eclipse.ui.test.dnd.RecursiveStackingPerspectiveFactory.mystack"
               relationship="stack"
               id="org.eclipse.ui.views.PropertySheet"/>
      </perspectiveExtension>
   </extension>
Comment 1 Nick Edgar CLA 2006-03-15 11:46:49 EST
Reassigning bugs in component areas that are changing ownership.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:14:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 3 Eclipse Genie CLA 2021-11-17 12:55:16 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.