Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2021-01-22 14:39:56 +0000
committerAlexander Kurtakov2021-01-22 15:36:32 +0000
commit51dcce66200b47fd54182053930e73b6c1be32fa (patch)
treec9bea2bd9812b4312d9e6ae1cdb1b600e0fc231c
parent84463f2dabfe1f43383d1cd9138cc1e1dcfe0bf3 (diff)
downloadeclipse.platform.ui-51dcce66200b47fd54182053930e73b6c1be32fa.tar.gz
eclipse.platform.ui-51dcce66200b47fd54182053930e73b6c1be32fa.tar.xz
eclipse.platform.ui-51dcce66200b47fd54182053930e73b6c1be32fa.zip
Bug 570574 - Stop using navigator view in tests
Fix StandaloneViewPerspective. Change-Id: I47813582b04a1f745ce89a9990919862f7c8daf6 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/StandaloneViewPerspective.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/StandaloneViewPerspective.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/StandaloneViewPerspective.java
index 371b336bf1f..74990f59d38 100644
--- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/StandaloneViewPerspective.java
+++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/StandaloneViewPerspective.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
+ * Copyright (c) 2005, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -24,7 +24,7 @@ public class StandaloneViewPerspective implements IPerspectiveFactory {
public static final String OUTLINE_ID = IPageLayout.ID_OUTLINE;
- public static final String RESOURCE_ID = IPageLayout.ID_RES_NAV;
+ public static final String RESOURCE_ID = IPageLayout.ID_PROJECT_EXPLORER;
public static final String TASK_ID = IPageLayout.ID_TASK_LIST;
@@ -38,12 +38,9 @@ public class StandaloneViewPerspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
- layout.addStandaloneView(RESOURCE_ID, true, IPageLayout.LEFT, 0.25f,
- IPageLayout.ID_EDITOR_AREA);
- layout.addStandaloneView(OUTLINE_ID, true, IPageLayout.RIGHT, 0.25f,
- IPageLayout.ID_EDITOR_AREA);
+ layout.addStandaloneView(RESOURCE_ID, true, IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA);
+ layout.addStandaloneView(OUTLINE_ID, true, IPageLayout.RIGHT, 0.25f, IPageLayout.ID_EDITOR_AREA);
layout.getViewLayout(OUTLINE_ID).setCloseable(false);
- layout.addStandaloneView(TASK_ID, true, IPageLayout.BOTTOM, 0.25f,
- IPageLayout.ID_EDITOR_AREA);
+ layout.addStandaloneView(TASK_ID, true, IPageLayout.BOTTOM, 0.25f, IPageLayout.ID_EDITOR_AREA);
}
}

Back to the top