Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglefur2011-02-21 13:29:49 +0000
committerglefur2011-02-21 13:29:49 +0000
commit7ed513613b547567743c2992b5ed307011140165 (patch)
tree30306551e9ef9f6d8f3d6c098d77741b2d9d6683 /plugins
parenta5e98f6c56e009cf1a780f6dab9b60ff01414574 (diff)
downloadorg.eclipse.eef-7ed513613b547567743c2992b5ed307011140165.tar.gz
org.eclipse.eef-7ed513613b547567743c2992b5ed307011140165.tar.xz
org.eclipse.eef-7ed513613b547567743c2992b5ed307011140165.zip
ADDED: opening java perspective
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/swtbot/finder/SWTEEFBot.java6
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/utils/UIConstants.java1
2 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/swtbot/finder/SWTEEFBot.java b/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/swtbot/finder/SWTEEFBot.java
index 60850fc6d..6d86076d3 100644
--- a/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/swtbot/finder/SWTEEFBot.java
+++ b/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/swtbot/finder/SWTEEFBot.java
@@ -1134,7 +1134,11 @@ public class SWTEEFBot extends SWTWorkbenchBot {
SWTBotShell openPerspectiveShell = shell(UIConstants.OPEN_PERSPECTIVE_MENU);
activateShell(openPerspectiveShell);
- table().select(UIConstants.JAVA_LABEL);
+ try {
+ table().select(UIConstants.JAVA_LABEL);
+ } catch (IllegalArgumentException e) {
+ table().select(UIConstants.JAVA_DEFAULT_LABEL);
+ }
button(UIConstants.OK_BUTTON).click();
}
diff --git a/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/utils/UIConstants.java b/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/utils/UIConstants.java
index 979a804fa..2f01714d2 100644
--- a/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/utils/UIConstants.java
+++ b/plugins/org.eclipse.emf.eef.runtime.tests/src/org/eclipse/emf/eef/runtime/tests/utils/UIConstants.java
@@ -43,6 +43,7 @@ public class UIConstants {
public static final String PACKAGE_EXPLORER_VIEW_NAME = "Package Explorer";
public static final String PROPERTIES_VIEW_NAME = "Properties";
public static final String JAVA_LABEL = "Java";
+ public static final String JAVA_DEFAULT_LABEL = "Java (default)";
public static final String WELCOME_LABEL = "Welcome";
/*****************************************************************************

Back to the top