Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordstadnik2006-01-12 10:41:16 +0000
committerdstadnik2006-01-12 10:41:16 +0000
commit1f75243d34f39fcfc1a7bad4ed738ec9438432b9 (patch)
tree7bc859d3c1527334a97926e093b942268e521094 /tests
parentc0edcd14b66ddf3f7b9bf543d8d6fb81ca80633d (diff)
downloadorg.eclipse.gmf-tooling-1f75243d34f39fcfc1a7bad4ed738ec9438432b9.tar.gz
org.eclipse.gmf-tooling-1f75243d34f39fcfc1a7bad4ed738ec9438432b9.tar.xz
org.eclipse.gmf-tooling-1f75243d34f39fcfc1a7bad4ed738ec9438432b9.zip
#122054 support external node labels (partial fix)
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
index 9dad59d8c..aef5d3f05 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
@@ -27,9 +27,11 @@ import org.eclipse.gmf.codegen.gmfgen.GenChildContainer;
import org.eclipse.gmf.codegen.gmfgen.GenCommonBase;
import org.eclipse.gmf.codegen.gmfgen.GenCompartment;
import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.GenExternalNodeLabel;
import org.eclipse.gmf.codegen.gmfgen.GenLink;
import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
+import org.eclipse.gmf.codegen.gmfgen.GenNodeLabel;
import org.eclipse.gmf.codegen.gmfgen.Palette;
import org.eclipse.gmf.tests.ConfiguredTestCase;
import org.eclipse.jdt.core.JavaConventions;
@@ -165,6 +167,14 @@ public class HandcodedImplTest extends ConfiguredTestCase {
} else if (nextEntity instanceof GenNode) {
GenNode genNode = (GenNode) nextEntity;
checkClassName(state, "GenNode:GraphicalNodeEditPolicy", genNode.getGraphicalNodeEditPolicyClassName(), genNode.getGraphicalNodeEditPolicyQualifiedClassName());
+ for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) {
+ GenNodeLabel nextLabel = (GenNodeLabel) labels.next();
+ if (nextLabel instanceof GenExternalNodeLabel) {
+ GenExternalNodeLabel nextExtLabel = (GenExternalNodeLabel) nextLabel;
+ checkClassName(state, "GenExternalNodeLabel:TextEditPart", nextExtLabel.getTextEditPartClassName(), nextExtLabel.getTextEditPartQualifiedClassName());
+ checkClassName(state, "GenExternalNodeLabel:TextNotationViewFactory", nextExtLabel.getTextNotationViewFactoryClassName(), nextExtLabel.getTextNotationViewFactoryQualifiedClassName());
+ }
+ }
}
}
// test model may not contain them
@@ -172,11 +182,11 @@ public class HandcodedImplTest extends ConfiguredTestCase {
state.add("GenCommonBase:ItemSemanticEditPolicy");
state.add("GenCommonBase:NotationViewFactory");
state.add("GenContainer:CanonicalEditPolicy");
- state.add("GenLinkLabel:TextEditPart");
- state.add("GenLinkLabel:TextNotationViewFactory");
state.add("GenNode:GraphicalNodeEditPolicy");
// disable explicitly
state.add("FigureViewmap:Figure");
+ state.add("ExternalLabel:TextEditPart");
+ state.add("ExternalLabel:TextNotationViewFactory");
// coverage check
for (Iterator classifiers = GMFGenPackage.eINSTANCE.getEClassifiers().iterator(); classifiers.hasNext();) {

Back to the top