Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-10-31 17:26:46 +0000
committeratikhomirov2006-10-31 17:26:46 +0000
commit02cef08c18e62e0b0f8ac7e42d2f57d9870a2139 (patch)
treeeae9f1c6fd95c34e33f760c7868b9df814f423fa
parent4c4efaa39d22954443fcb035cd562a43ff5b7afd (diff)
downloadorg.eclipse.gmf-tooling-02cef08c18e62e0b0f8ac7e42d2f57d9870a2139.tar.gz
org.eclipse.gmf-tooling-02cef08c18e62e0b0f8ac7e42d2f57d9870a2139.tar.xz
org.eclipse.gmf-tooling-02cef08c18e62e0b0f8ac7e42d2f57d9870a2139.zip
refactor
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/FigureCodegenTest.java6
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/MapModeStrategyTest.java8
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/StandalonePluginConverterTest.java8
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/AbstractFigureGeneratorSetup.java71
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureCodegenSetup.java9
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureGeneratorUtil.java66
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureLayoutSetup.java27
7 files changed, 89 insertions, 106 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/FigureCodegenTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/FigureCodegenTest.java
index 526ff52a2..c6690deb3 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/FigureCodegenTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/FigureCodegenTest.java
@@ -56,15 +56,15 @@ public class FigureCodegenTest extends FigureCodegenTestBase {
}
public void testGenCustomFigure() {
- performTests(getSessionSetup().getFigure1());
+ performTests(getSessionSetup().getCustomFigure());
}
public void testGenSimpleShape() {
- performTests(getSessionSetup().getFigure2());
+ performTests(getSessionSetup().getSimpleShape());
}
public void testGenComplexShape() {
- performTests(getSessionSetup().getFigure3());
+ performTests(getSessionSetup().getComplexShape());
}
public void testGenCustomFigureWithAttributes(){
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/MapModeStrategyTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/MapModeStrategyTest.java
index 106229b80..42a50d58b 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/MapModeStrategyTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/MapModeStrategyTest.java
@@ -14,7 +14,6 @@ package org.eclipse.gmf.tests.gen;
import junit.framework.TestCase;
import org.eclipse.gmf.common.codegen.ImportAssistant;
-import org.eclipse.gmf.gmfgraph.Dimension;
import org.eclipse.gmf.gmfgraph.Figure;
import org.eclipse.gmf.gmfgraph.GMFGraphFactory;
import org.eclipse.gmf.gmfgraph.RoundedRectangle;
@@ -57,12 +56,9 @@ public class MapModeStrategyTest extends TestCase {
}
private Figure createFigureWithPrefferedSize(){
- Figure figure = FigureGeneratorUtil.createFigure2();
+ Figure figure = GMFGraphFactory.eINSTANCE.createRectangle();
figure.setName("Figure2WithPreferredSize");
- Dimension preferredSize = GMFGraphFactory.eINSTANCE.createDimension();
- preferredSize.setDx(234);
- preferredSize.setDy(567);
- figure.setPreferredSize(preferredSize);
+ figure.setPreferredSize(FigureGeneratorUtil.createDimension(234, 567));
return figure;
}
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/StandalonePluginConverterTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/StandalonePluginConverterTest.java
index a4e807004..d9f213cb7 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/StandalonePluginConverterTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/StandalonePluginConverterTest.java
@@ -41,6 +41,7 @@ import org.eclipse.gmf.internal.graphdef.codegen.CanvasProcessor;
import org.eclipse.gmf.internal.graphdef.codegen.GalleryMirrorProcessor;
import org.eclipse.gmf.internal.graphdef.codegen.GalleryMirrorProcessor.GenerationInfo;
import org.eclipse.gmf.tests.setup.figures.FigureCheck;
+import org.eclipse.gmf.tests.setup.figures.FigureCodegenSetup;
import org.eclipse.gmf.tests.setup.figures.FigureGeneratorUtil;
import org.eclipse.gmf.tests.setup.figures.GenericFigureCheck;
import org.eclipse.gmf.tests.setup.figures.FigureGeneratorUtil.GeneratedClassData;
@@ -85,10 +86,11 @@ public class StandalonePluginConverterTest extends TestCase {
public void testStandaloneGalleryConverter() throws Exception {
FigureGallery gallery = GMFGraphFactory.eINSTANCE.createFigureGallery();
+ FigureCodegenSetup sss = new FigureCodegenSetup(); // XXX sss#getFigureGallery() instead?
Figure[] originals = new Figure[] {
- FigureGeneratorUtil.createFigure1(),
- FigureGeneratorUtil.createFigure2(),
- FigureGeneratorUtil.createFigure3(),
+ sss.getCustomFigure(),
+ sss.getSimpleShape(),
+ sss.getComplexShape(),
};
gallery.getFigures().addAll(Arrays.asList(originals));
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/AbstractFigureGeneratorSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/AbstractFigureGeneratorSetup.java
index f1e99f2e9..a80520edc 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/AbstractFigureGeneratorSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/AbstractFigureGeneratorSetup.java
@@ -14,11 +14,19 @@ package org.eclipse.gmf.tests.setup.figures;
import junit.framework.Assert;
import org.eclipse.gmf.gmfgraph.ColorConstants;
+import org.eclipse.gmf.gmfgraph.CustomFigure;
+import org.eclipse.gmf.gmfgraph.Ellipse;
import org.eclipse.gmf.gmfgraph.Figure;
import org.eclipse.gmf.gmfgraph.FigureGallery;
+import org.eclipse.gmf.gmfgraph.FontStyle;
import org.eclipse.gmf.gmfgraph.GMFGraphFactory;
+import org.eclipse.gmf.gmfgraph.Label;
+import org.eclipse.gmf.gmfgraph.LineKind;
+import org.eclipse.gmf.gmfgraph.Point;
+import org.eclipse.gmf.gmfgraph.Polygon;
import org.eclipse.gmf.gmfgraph.PolygonDecoration;
import org.eclipse.gmf.gmfgraph.PolylineConnection;
+import org.eclipse.gmf.gmfgraph.Rectangle;
import org.eclipse.gmf.graphdef.codegen.StandaloneGenerator.Config;
import org.eclipse.gmf.tests.TestConfiguration;
import org.eclipse.gmf.tests.setup.figures.FigureGeneratorUtil.GeneratedClassData;
@@ -103,26 +111,75 @@ public abstract class AbstractFigureGeneratorSetup implements TestConfiguration
return df;
}
- public Figure getFigure1() {
+ public final Figure getCustomFigure() {
if (myFigure1 == null) {
- myFigure1 = FigureGeneratorUtil.createFigure1();
+ myFigure1 = createFigure1();
}
return myFigure1;
}
- public Figure getFigure2() {
+ public final Figure getSimpleShape() {
if (myFigure2 == null) {
- myFigure2 = FigureGeneratorUtil.createFigure2();
+ myFigure2 = createFigure2();
}
return myFigure2;
}
- public Figure getFigure3() {
+ public final Figure getComplexShape() {
if (myFigure3 == null) {
- myFigure3 = FigureGeneratorUtil.createFigure3();
+ myFigure3 = createFigure3();
}
return myFigure3;
}
-
+
+ protected static Figure createFigure1() {
+ CustomFigure cf = GMFGraphFactory.eINSTANCE.createCustomFigure();
+ cf.setName("MyRRectangleAsCustom");
+ cf.setBundleName(FigureGeneratorUtil.DRAW2D);
+ cf.setQualifiedClassName(org.eclipse.draw2d.RoundedRectangle.class.getName());
+ Point p = GMFGraphFactory.eINSTANCE.createPoint();
+ p.setX(1023);
+ p.setY(33);
+ cf.setSize(p);
+ cf.getChildren().add(createFigure2());
+ Ellipse e = GMFGraphFactory.eINSTANCE.createEllipse();
+ e.setName("Elli");
+ e.setFill(true);
+ cf.getChildren().add(e);
+ return cf;
+ }
+
+ protected static Figure createFigure2() {
+ Rectangle r = GMFGraphFactory.eINSTANCE.createRectangle();
+ r.setName("MyRect");
+ r.setFill(true);
+ r.setLineWidth(3);
+ r.setLineKind(LineKind.LINE_DASHDOT_LITERAL);
+ Label l1 = GMFGraphFactory.eINSTANCE.createLabel();
+ l1.setText("aaaaa");
+ l1.setName("L1");
+ l1.setFont(FigureGeneratorUtil.createBasicFont("Arial", 9, FontStyle.ITALIC_LITERAL));
+ l1.setForegroundColor(FigureGeneratorUtil.createConstantColor(ColorConstants.CYAN_LITERAL));
+ Label l2 = GMFGraphFactory.eINSTANCE.createLabel();
+ l2.setText("bbbbb");
+ l2.setName("L2");
+ l2.setFont(FigureGeneratorUtil.createBasicFont("Helvetica", 12, FontStyle.BOLD_LITERAL));
+ r.getChildren().add(l1);
+ r.getChildren().add(l2);
+ return r;
+ }
+
+ private static Figure createFigure3() {
+ Figure myFigure3 = GMFGraphFactory.eINSTANCE.createRoundedRectangle();
+ myFigure3.setName("Rounded1");
+ Polygon pg = GMFGraphFactory.eINSTANCE.createPolygon();
+ pg.setName("Polygon1");
+ pg.getTemplate().add(FigureGeneratorUtil.createPoint(1, 2));
+ pg.getTemplate().add(FigureGeneratorUtil.createPoint(0, 3));
+ pg.getTemplate().add(FigureGeneratorUtil.createPoint(-2, -1));
+ myFigure3.getChildren().add(pg);
+ myFigure3.getChildren().add(createFigure1());
+ return myFigure3;
+ }
}
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureCodegenSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureCodegenSetup.java
index 7589c9d14..398dda761 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureCodegenSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureCodegenSetup.java
@@ -15,7 +15,6 @@ import org.eclipse.draw2d.PolygonDecoration;
import org.eclipse.draw2d.PolylineConnection;
import org.eclipse.draw2d.ScrollBar;
import org.eclipse.draw2d.geometry.PointList;
-import org.eclipse.emf.codegen.util.CodeGenUtil;
import org.eclipse.gmf.gmfgraph.ColorConstants;
import org.eclipse.gmf.gmfgraph.ConstantColor;
import org.eclipse.gmf.gmfgraph.CustomAttribute;
@@ -56,9 +55,9 @@ public class FigureCodegenSetup extends AbstractFigureGeneratorSetup {
protected void addFigures(FigureGallery gallery) {
gallery.getFigures().add(getEcoreContainmentRef());
- gallery.getFigures().add(getFigure1());
- gallery.getFigures().add(getFigure2());
- gallery.getFigures().add(getFigure3());
+ gallery.getFigures().add(getCustomFigure());
+ gallery.getFigures().add(getSimpleShape());
+ gallery.getFigures().add(getComplexShape());
gallery.getFigures().add(getLink());
gallery.getFigures().add(getCustom());
gallery.getFigures().add(getRoot());
@@ -218,7 +217,7 @@ public class FigureCodegenSetup extends AbstractFigureGeneratorSetup {
myCustom = GMFGraphFactory.eINSTANCE.createCustomFigure();
myCustom.setBundleName(FigureGeneratorUtil.DRAW2D);
myCustom.setQualifiedClassName(ScrollBar.class.getName());
- myCustom.setName(CodeGenUtil.getSimpleClassName(ScrollBar.class.getName()));
+ myCustom.setName(ScrollBar.class.getSimpleName());
}
return myCustom;
}
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureGeneratorUtil.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureGeneratorUtil.java
index 15bb47015..12f737c7b 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureGeneratorUtil.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureGeneratorUtil.java
@@ -13,7 +13,6 @@ package org.eclipse.gmf.tests.setup.figures;
import java.util.ArrayList;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.Map;
import junit.framework.Assert;
@@ -28,20 +27,14 @@ import org.eclipse.gmf.common.codegen.ImportAssistant;
import org.eclipse.gmf.gmfgraph.BasicFont;
import org.eclipse.gmf.gmfgraph.ColorConstants;
import org.eclipse.gmf.gmfgraph.ConstantColor;
-import org.eclipse.gmf.gmfgraph.CustomFigure;
import org.eclipse.gmf.gmfgraph.Dimension;
-import org.eclipse.gmf.gmfgraph.Ellipse;
import org.eclipse.gmf.gmfgraph.Figure;
import org.eclipse.gmf.gmfgraph.FigureGallery;
import org.eclipse.gmf.gmfgraph.Font;
import org.eclipse.gmf.gmfgraph.FontStyle;
import org.eclipse.gmf.gmfgraph.GMFGraphFactory;
-import org.eclipse.gmf.gmfgraph.Label;
-import org.eclipse.gmf.gmfgraph.LineKind;
import org.eclipse.gmf.gmfgraph.Point;
-import org.eclipse.gmf.gmfgraph.Polygon;
import org.eclipse.gmf.gmfgraph.RGBColor;
-import org.eclipse.gmf.gmfgraph.Rectangle;
import org.eclipse.gmf.gmfgraph.util.RuntimeFQNSwitch;
import org.eclipse.gmf.graphdef.codegen.FigureGenerator;
import org.eclipse.gmf.graphdef.codegen.StandaloneGenerator;
@@ -61,6 +54,7 @@ import org.osgi.framework.Bundle;
public class FigureGeneratorUtil {
+ // XXX use .class.getPackage().getName instead?
public static final String DRAW2D = "org.eclipse.draw2d";
public static final String DEFAULT_FIGURE_PACKAGE = "org.eclipse.gmf.tests.sample.figures";
@@ -68,11 +62,7 @@ public class FigureGeneratorUtil {
public static final String DEFAULT_PLUGIN_ACTIVATOR = DEFAULT_FIGURE_PACKAGE + ".PluginActivator";
// FigureGenerator: utility methods to generate/compile/instantiate figures
-
- private static void performTests(Figure f, FigureCheck check) {
- performTests(f, check, createStandaloneGeneratorConfig());
- }
-
+
public static void performTests(Figure f, FigureCheck check, Config config) {
generateAndParse(f);
FigureGallery gallery = GMFGraphFactory.eINSTANCE.createFigureGallery();
@@ -205,57 +195,7 @@ public class FigureGeneratorUtil {
}
}
- // GMFGRAPH: Common figures + utility methods reused across all the tests.
-
- public static Figure createFigure1() {
- CustomFigure cf = GMFGraphFactory.eINSTANCE.createCustomFigure();
- cf.setName("MyRRectangleAsCustom");
- cf.setBundleName(DRAW2D);
- cf.setQualifiedClassName(org.eclipse.draw2d.RoundedRectangle.class.getName());
- Point p = GMFGraphFactory.eINSTANCE.createPoint();
- p.setX(1023);
- p.setY(33);
- cf.setSize(p);
- cf.getChildren().add(createFigure2());
- Ellipse e = GMFGraphFactory.eINSTANCE.createEllipse();
- e.setName("Elli");
- e.setFill(true);
- cf.getChildren().add(e);
- return cf;
- }
-
- public static Figure createFigure2() {
- Rectangle r = GMFGraphFactory.eINSTANCE.createRectangle();
- r.setName("MyRect");
- r.setFill(true);
- r.setLineWidth(3);
- r.setLineKind(LineKind.LINE_DASHDOT_LITERAL);
- Label l1 = GMFGraphFactory.eINSTANCE.createLabel();
- l1.setText("aaaaa");
- l1.setName("L1");
- l1.setFont(createBasicFont("Arial", 9, FontStyle.ITALIC_LITERAL));
- l1.setForegroundColor(createConstantColor(ColorConstants.CYAN_LITERAL));
- Label l2 = GMFGraphFactory.eINSTANCE.createLabel();
- l2.setText("bbbbb");
- l2.setName("L2");
- l2.setFont(createBasicFont("Helvetica", 12, FontStyle.BOLD_LITERAL));
- r.getChildren().add(l1);
- r.getChildren().add(l2);
- return r;
- }
-
- public static Figure createFigure3() {
- Figure myFigure3 = GMFGraphFactory.eINSTANCE.createRoundedRectangle();
- myFigure3.setName("Rounded1");
- Polygon pg = GMFGraphFactory.eINSTANCE.createPolygon();
- pg.setName("Polygon1");
- pg.getTemplate().add(createPoint(1, 2));
- pg.getTemplate().add(createPoint(0, 3));
- pg.getTemplate().add(createPoint(-2, -1));
- myFigure3.getChildren().add(pg);
- myFigure3.getChildren().add(createFigure1());
- return myFigure3;
- }
+ // GMFGRAPH: utility methods reused across all the tests.
public static ConstantColor createConstantColor(ColorConstants constant) {
ConstantColor result = GMFGraphFactory.eINSTANCE.createConstantColor();
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureLayoutSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureLayoutSetup.java
index c3391a698..0110ebe48 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureLayoutSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/FigureLayoutSetup.java
@@ -32,7 +32,6 @@ import org.eclipse.gmf.gmfgraph.GMFGraphFactory;
import org.eclipse.gmf.gmfgraph.GridLayout;
import org.eclipse.gmf.gmfgraph.GridLayoutData;
import org.eclipse.gmf.gmfgraph.LayoutData;
-import org.eclipse.gmf.gmfgraph.RGBColor;
import org.eclipse.gmf.gmfgraph.Rectangle;
import org.eclipse.gmf.gmfgraph.RoundedRectangle;
import org.eclipse.gmf.gmfgraph.XYLayoutData;
@@ -193,7 +192,7 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
public Figure getParent8() {
if (myParent8 == null) {
- Figure actualContainer = FigureGeneratorUtil.createFigure2();
+ Figure actualContainer = createFigure2();
Figure referencedFigure = (Figure) actualContainer.getChildren().get(0);
myParent8 = GMFGraphFactory.eINSTANCE.createRectangle();
@@ -236,7 +235,7 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
public Figure getParent6() {
if (myParent6 == null) {
- myParent6 = FigureGeneratorUtil.createFigure1();
+ myParent6 = createFigure1();
myParent6.setName("Parent");
GridLayout layout = createGridLayoutAllProperties();
layout.setNumColumns(1);
@@ -257,7 +256,7 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
public Figure getParent5() {
if (myParent5 == null) {
- myParent5 = FigureGeneratorUtil.createFigure2();
+ myParent5 = createFigure2();
myParent5.setName("Parent5");
EList children = myParent5.getChildren();
Assert.assertFalse("Precondition -- children required to test layout", children.isEmpty());
@@ -278,7 +277,7 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
public Figure getParent4() {
if (myParent4 == null) {
- myParent4 = FigureGeneratorUtil.createFigure2();
+ myParent4 = createFigure2();
myParent4.setName("Parent4");
myParent4.setLayout(createGridLayoutAllProperties());
}
@@ -435,16 +434,16 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
private Figure createRGBGroup(String rootName){
Figure parent = GMFGraphFactory.eINSTANCE.createRectangle();
- setColor(parent, 0, 0, 255);
+ parent.setForegroundColor(FigureGeneratorUtil.createRGBColor(0, 0, 255));
parent.setName(rootName);
Figure greenEllipse = GMFGraphFactory.eINSTANCE.createEllipse();
greenEllipse.setName("GreenEllipse");
- setColor(greenEllipse, 0, 255, 0);
+ greenEllipse.setForegroundColor(FigureGeneratorUtil.createRGBColor(0, 255, 0));
Figure redRRectangle = GMFGraphFactory.eINSTANCE.createRoundedRectangle();
redRRectangle.setName("RedRoundedRectangle");
- setColor(redRRectangle, 255, 0, 0);
+ redRRectangle.setForegroundColor(FigureGeneratorUtil.createRGBColor(255, 0, 0));
parent.getChildren().add(greenEllipse);
parent.getChildren().add(redRRectangle);
@@ -452,14 +451,6 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
return parent;
}
- private void setColor(Figure figure, int red, int green, int blue){
- RGBColor color = GMFGraphFactory.eINSTANCE.createRGBColor();
- color.setRed(red);
- color.setGreen(green);
- color.setBlue(blue);
- figure.setForegroundColor(color);
- }
-
private void setupXYLayout(final Figure group, final Figure left, final Figure right){
Assert.assertTrue(group.getChildren().contains(left));
Assert.assertTrue(group.getChildren().contains(right));
@@ -468,9 +459,7 @@ public class FigureLayoutSetup extends AbstractFigureGeneratorSetup {
group.setLayout(GMFGraphFactory.eINSTANCE.createXYLayout());
XYLayoutData leftDataCorrect = GMFGraphFactory.eINSTANCE.createXYLayoutData();
- leftDataCorrect.setTopLeft(GMFGraphFactory.eINSTANCE.createPoint());
- leftDataCorrect.getTopLeft().setX(12);
- leftDataCorrect.getTopLeft().setY(13);
+ leftDataCorrect.setTopLeft(FigureGeneratorUtil.createPoint(12, 13));
leftDataCorrect.setSize(FigureGeneratorUtil.createDimension(20, 30));
leftDataCorrect.setOwner(left);

Back to the top