aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2013-09-11 10:13:06 (EDT)
committerDaniel Rolka2013-09-11 10:27:46 (EDT)
commit087a045bec3db62fffbaa659f2592f31d497085e (patch)
tree5f04ed0862709fd9e523128add707b2abc285625
parent68e61aa624538cfe9ff316672e34607ccc3d3e77 (diff)
downloadeclipse.platform.ui-087a045bec3db62fffbaa659f2592f31d497085e.zip
eclipse.platform.ui-087a045bec3db62fffbaa659f2592f31d497085e.tar.gz
eclipse.platform.ui-087a045bec3db62fffbaa659f2592f31d497085e.tar.bz2
Bug 416995 - [Code review] The "perspective" string should be turnedrefs/changes/52/16352/1
into a constant on E4Application Signed-off-by: Daniel Rolka <daniel.rolka@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java3
1 files changed, 2 insertions, 1 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 b5d1659..262d4b2 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
@@ -104,6 +104,7 @@ public class E4Application implements IApplication {
private static final String WORKSPACE_VERSION_KEY = "org.eclipse.core.runtime"; //$NON-NLS-1$
private static final String WORKSPACE_VERSION_VALUE = "2"; //$NON-NLS-1$
private static final String APPLICATION_MODEL_PATH_DEFAULT = "Application.e4xmi";
+ private static final String PERSPECTIVE_ARG_NAME = "perspective";
private String[] args;
@@ -239,7 +240,7 @@ public class E4Application implements IApplication {
}
}
- String forcedPerspectiveId = getArgValue("perspective",
+ String forcedPerspectiveId = getArgValue(PERSPECTIVE_ARG_NAME,
applicationContext, false);
if (forcedPerspectiveId != null) {
appContext.set(E4Workbench.FORCED_PERSPECTIVE_ID,