Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2011-05-18 16:29:54 +0000
committerMartin Fluegge2011-05-18 16:29:54 +0000
commite7cb0f6147cad1ff90fe26d0030b7e9c5ac12811 (patch)
treecf5a2d169d908f837e39884b71180a5e44b7b35f /plugins/org.eclipse.emf.cdo.dawn.tests
parentc50cafd01156fa241818d48616df59e5832306ef (diff)
downloadcdo-e7cb0f6147cad1ff90fe26d0030b7e9c5ac12811.tar.gz
cdo-e7cb0f6147cad1ff90fe26d0030b7e9c5ac12811.tar.xz
cdo-e7cb0f6147cad1ff90fe26d0030b7e9c5ac12811.zip
[333187] [Dawn] Provide integration for Ecore Tools
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333187
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.tests')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/ui/util/DawnAcoreTestUtil.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/ui/util/DawnAcoreTestUtil.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/ui/util/DawnAcoreTestUtil.java
index 38fc52f8d9..8ff353e986 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/ui/util/DawnAcoreTestUtil.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/ui/util/DawnAcoreTestUtil.java
@@ -85,13 +85,34 @@ public class DawnAcoreTestUtil
public static SWTBotGefEditor openNewAcoreGMFEditor(String diagramResourceName, SWTGefBot bot)
{
+ return openNewAcoreGMFEditor(diagramResourceName, diagramResourceName.replace("_diagram", ""), bot);
+ }
+
+ public static SWTBotGefEditor openNewAcoreGMFEditor(String diagramResourceName, String semanticResource, SWTGefBot bot)
+ {
bot.menu("File").menu("New").menu("Other...").click();
SWTBotShell shell = bot.shell("New");
shell.activate();
bot.tree().expandNode("Dawn Examples").select("Dawn Acore Diagram");
bot.button("Next >").click();
+
+ shell.activate();
+
+ SWTBotText fileNameLabel = bot.textWithLabel(resourceFieldLabel);
+ fileNameLabel.setText(diagramResourceName);
+
+ bot.button("Next >").click();
+
+ SWTBotText fileSemanticNameLabel = bot.textWithLabel(resourceFieldLabel);
+
+ fileSemanticNameLabel = bot.textWithLabel(resourceFieldLabel);
+ fileSemanticNameLabel.setText(semanticResource);
+
+ fileSemanticNameLabel = bot.textWithLabel(resourceFieldLabel);
+
bot.button("Finish").click();
+
SWTBotGefEditor editor = bot.gefEditor(diagramResourceName);
return editor;
}

Back to the top