aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2014-03-27 08:16:26 -0400
committerEric Moffatt2014-03-28 14:02:40 -0400
commit2e063860b3a960f0fab69afd62af9054ee06fa8a (patch)
treef74026ed6ce9d129af48f428a47aea6035b7d540
parent2684e32f10bc6ffa91779f55073010c0846c5bff (diff)
downloadeclipse.platform.ui-2e063860b3a960f0fab69afd62af9054ee06fa8a.tar.gz
eclipse.platform.ui-2e063860b3a960f0fab69afd62af9054ee06fa8a.tar.xz
eclipse.platform.ui-2e063860b3a960f0fab69afd62af9054ee06fa8a.zip
Bug 431348 - IDE perspective stack should define ID to that model
fragments can target it Change-Id: I0b81c5961fb8ff280706b7b9e1de7d35fcbad841 Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java3
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java3
2 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java
index ed6063c841..3565108d68 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/IWorkbenchConstants.java
@@ -38,6 +38,9 @@ public interface IWorkbenchConstants {
@Deprecated
public static final String DEFAULT_ACCELERATOR_SCOPE_ID = "org.eclipse.ui.globalScope"; //$NON-NLS-1$
+ // ID of the MPerspectiveStack in the IDE e4 model
+ public static final String PERSPECTIVE_STACK_ID = "org.eclipse.ui.ide.perspectivestack"; //$NON-NLS-1$
+
//mappings for type/extension to an editor - backward compatibility only.
public final static String EDITOR_FILE_NAME = "editors.xml"; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index 5aa7873919..6834fdaf03 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -9,7 +9,7 @@
* IBM Corporation - initial API and implementation
* Christian Janz - <christian.janz@gmail.com> Fix for Bug 385592
* Marc-Andre Laperle (Ericsson) - Fix for Bug 413590
- * Lars Vogel <Lars.Vogel@gmail.com> - Bug 431340
+ * Lars Vogel <Lars.Vogel@gmail.com> - Bug 431340, 431348
*******************************************************************************/
package org.eclipse.ui.internal;
@@ -3953,6 +3953,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
MPerspectiveStack perspectiveStack = modelService
.createModelElement(MPerspectiveStack.class);
+ perspectiveStack.setElementId(IWorkbenchConstants.PERSPECTIVE_STACK_ID);
perspectiveStack.setContainerData("7500"); //$NON-NLS-1$
MPartStack stickyFolder = modelService.createModelElement(MPartStack.class);