Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java')
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
index 52f8e5e8400..b5d165908b7 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
@@ -238,6 +238,14 @@ public class E4Application implements IApplication {
PostContextCreate.class, appContext, null);
}
}
+
+ String forcedPerspectiveId = getArgValue("perspective",
+ applicationContext, false);
+ if (forcedPerspectiveId != null) {
+ appContext.set(E4Workbench.FORCED_PERSPECTIVE_ID,
+ forcedPerspectiveId);
+ }
+
// Create the app model and its context
MApplication appModel = loadApplicationModel(applicationContext,
appContext);

Back to the top