Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGoulwen Le Fur2014-01-30 10:29:37 -0500
committerGoulwen Le Fur2014-01-30 10:29:37 -0500
commit7dbc70a2b9cf70ea6b6a95f14b074ce738624c57 (patch)
treefd3c0d1c16db0e3b9f8689ef45320e47c589a95c
parent3e8b8ccecbadc9b5911115d71a86c34b5ca26f2e (diff)
downloadorg.eclipse.eef-7dbc70a2b9cf70ea6b6a95f14b074ce738624c57.tar.gz
org.eclipse.eef-7dbc70a2b9cf70ea6b6a95f14b074ce738624c57.tar.xz
org.eclipse.eef-7dbc70a2b9cf70ea6b6a95f14b074ce738624c57.zip
UPDATED: test framework
-rwxr-xr-xplugins/org.eclipse.emf.eef.modelingbot/src/org/eclipse/emf/eef/modelingBot/swtbot/SWTEEFBot.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.eef.modelingbot/src/org/eclipse/emf/eef/modelingBot/swtbot/SWTEEFBot.java b/plugins/org.eclipse.emf.eef.modelingbot/src/org/eclipse/emf/eef/modelingBot/swtbot/SWTEEFBot.java
index af996003e..3d77160fe 100755
--- a/plugins/org.eclipse.emf.eef.modelingbot/src/org/eclipse/emf/eef/modelingBot/swtbot/SWTEEFBot.java
+++ b/plugins/org.eclipse.emf.eef.modelingbot/src/org/eclipse/emf/eef/modelingBot/swtbot/SWTEEFBot.java
@@ -34,6 +34,7 @@ import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.emf.edit.domain.IEditingDomainProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.eef.components.PropertiesEditionComponent;
import org.eclipse.emf.eef.components.PropertiesEditionElement;
import org.eclipse.emf.eef.extended.editor.ReferenceableObject;
import org.eclipse.emf.eef.modelingBot.Action;
@@ -519,7 +520,11 @@ public class SWTEEFBot extends SWTWorkbenchBot implements IModelingBot {
final ElementEditor elementEditor = propertiesEditionElement.getViews().get(0);
final View view = EEFModelHelper.getView(elementEditor);
if (view.getName() != null) {
- SWTBotCTabItem cTabItem = cTabItem(view.getName());
+ String tabToSearch = view.getName();
+ if (view.getName().equals(((PropertiesEditionComponent)propertiesEditionElement.eContainer()).getName())) {
+ tabToSearch = "Base";
+ }
+ SWTBotCTabItem cTabItem = cTabItem(tabToSearch);
cTabItem.activate();
cTabItem.setFocus();
}

Back to the top