Commit deb9d39f authored by Robert Smith's avatar Robert Smith
Browse files

Merge remote-tracking branch 'origin/Robert/GeometryRefactor' into next

Conflicts:
	org.eclipse.ice.demo/src/org/eclipse/ice/demo/visualization/model/VisualizationCompleteModel.java
	org.eclipse.ice.product/ice.product_WINDOWS.launch
parents a4081d38 c578c9f9
......@@ -5,9 +5,10 @@ Bundle-SymbolicName: org.eclipse.ice.client.widgets.test
Bundle-Version: 2.1.8.qualifier
Fragment-Host: org.eclipse.ice.client.widgets;bundle-version="2.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.eclipse.eavp.viz.service.geometry.shapes,
Import-Package: org.eclipse.eavp.viz.modeling,
org.eclipse.eavp.viz.service.geometry.widgets,
org.eclipse.eavp.viz.modeling,
org.eclipse.eavp.viz.service.javafx.canvas,
org.eclipse.january.geometry,
org.eclipse.ui,
org.junit
Require-Bundle: org.eclipse.swtbot.eclipse.core,
......
......@@ -14,12 +14,10 @@ package org.eclipse.ice.client.widgets.test;
import static org.junit.Assert.assertTrue;
import org.eclipse.eavp.viz.modeling.base.BasicView;
import org.eclipse.eavp.viz.modeling.ShapeController;
import org.eclipse.eavp.viz.modeling.Shape;
import org.eclipse.ice.client.widgets.ICEFormEditor;
import org.eclipse.ice.client.widgets.ICEGeometryPage;
import org.eclipse.ice.datastructures.form.GeometryComponent;
import org.eclipse.january.geometry.GeometryFactory;
import org.junit.Test;
/**
......@@ -43,10 +41,10 @@ public class ICEGeometryPageTester {
// Get two GeometryComponent to check equality
GeometryComponent geometryComponent = new GeometryComponent();
GeometryComponent otherGeometryComponent = new GeometryComponent();
geometryComponent.setGeometry(
new ShapeController(new Shape(), new BasicView()));
geometryComponent.setGeometry(
new ShapeController(new Shape(), new BasicView()));
geometryComponent
.setGeometry(GeometryFactory.eINSTANCE.createGeometry());
geometryComponent
.setGeometry(GeometryFactory.eINSTANCE.createGeometry());
// Get ICEGeometryPage to check accessor
ICEFormEditor ICEFormEditor = new ICEFormEditor();
......
......@@ -18,15 +18,17 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.eclipse.eavp.viz.modeling.base.BasicView;
import org.eclipse.eavp.viz.modeling.properties.MeshProperty;
import org.eclipse.eavp.viz.modeling.ShapeController;
import org.eclipse.eavp.viz.modeling.Shape;
import org.eclipse.eavp.viz.service.geometry.shapes.GeometryMeshProperty;
import org.eclipse.eavp.viz.service.geometry.shapes.OperatorType;
import org.eclipse.eavp.viz.service.geometry.shapes.ShapeType;
import org.eclipse.eavp.viz.service.geometry.widgets.ShapeTreeContentProvider;
import org.eclipse.eavp.viz.service.javafx.canvas.FXAttachment;
import org.eclipse.eavp.viz.service.javafx.canvas.FXAttachmentManager;
import org.eclipse.ice.datastructures.form.GeometryComponent;
import org.eclipse.january.geometry.Complement;
import org.eclipse.january.geometry.Cube;
import org.eclipse.january.geometry.Geometry;
import org.eclipse.january.geometry.GeometryFactory;
import org.eclipse.january.geometry.Intersection;
import org.eclipse.january.geometry.Sphere;
import org.eclipse.january.geometry.Union;
import org.junit.Test;
/**
......@@ -48,35 +50,21 @@ public class ShapeTreeContentProviderTest {
// Create all needed objects
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider();
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider(
new FXAttachment(new FXAttachmentManager()));
// Create a shape
Shape geometryModel = new Shape();
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
ShapeController sphere1 = (ShapeController) geometryShape.clone();
sphere1.setProperty(MeshProperty.TYPE, ShapeType.Sphere.toString());
ShapeController cube1 = (ShapeController) geometryShape.clone();
cube1.setProperty(MeshProperty.TYPE, ShapeType.Cube.toString());
ShapeController union1 = (ShapeController) geometryShape.clone();
union1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Union.toString());
ShapeController complement1 = (ShapeController) geometryShape.clone();
complement1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Complement.toString());
ShapeController intersection1 = (ShapeController) geometryShape.clone();
intersection1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Intersection.toString());
Sphere sphere1 = GeometryFactory.eINSTANCE.createSphere();
Cube cube1 = GeometryFactory.eINSTANCE.createCube();
Union union1 = GeometryFactory.eINSTANCE.createUnion();
Complement complement1 = GeometryFactory.eINSTANCE.createComplement();
Intersection intersection1 = GeometryFactory.eINSTANCE.createIntersection();;
// Create a simple CSG tree
union1.addEntity(sphere1);
union1.addEntity(complement1);
union1.addEntity(intersection1);
complement1.addEntity(cube1);
union1.addNode(sphere1);
union1.addNode(complement1);
union1.addNode(intersection1);
complement1.addNode(cube1);
// Using the ShapeTreeContentProvider, get and check the children
// of all the previously created shapes
......@@ -127,35 +115,21 @@ public class ShapeTreeContentProviderTest {
// Create all needed objects
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider();
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider(
new FXAttachment(new FXAttachmentManager()));
// Create a shape
Shape geometryModel = new Shape();
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
ShapeController sphere1 = (ShapeController) geometryShape.clone();
sphere1.setProperty(MeshProperty.TYPE, ShapeType.Sphere.toString());
ShapeController cube1 = (ShapeController) geometryShape.clone();
cube1.setProperty(MeshProperty.TYPE, ShapeType.Cube.toString());
ShapeController union1 = (ShapeController) geometryShape.clone();
union1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Union.toString());
ShapeController complement1 = (ShapeController) geometryShape.clone();
complement1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Complement.toString());
ShapeController intersection1 = (ShapeController) geometryShape.clone();
intersection1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Intersection.toString());
Sphere sphere1 = GeometryFactory.eINSTANCE.createSphere();
Cube cube1 = GeometryFactory.eINSTANCE.createCube();
Union union1 = GeometryFactory.eINSTANCE.createUnion();
Complement complement1 = GeometryFactory.eINSTANCE.createComplement();
Intersection intersection1 = GeometryFactory.eINSTANCE.createIntersection();;
// Create a simple CSG tree
union1.addEntity(sphere1);
union1.addEntity(complement1);
union1.addEntity(intersection1);
complement1.addEntity(cube1);
union1.addNode(sphere1);
union1.addNode(complement1);
union1.addNode(intersection1);
complement1.addNode(cube1);
// Using the ShapeTreeContentProvider, get and check the children
// of all the previously created shapes
......@@ -189,7 +163,8 @@ public class ShapeTreeContentProviderTest {
// but we can still check whether it doesn't throw exceptions upon
// creation and destruction.
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider();
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider(
new FXAttachment(new FXAttachmentManager()));
shapeProvider.dispose();
......@@ -206,29 +181,27 @@ public class ShapeTreeContentProviderTest {
// Create all needed objects
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider();
ShapeTreeContentProvider shapeProvider = new ShapeTreeContentProvider(
new FXAttachment(new FXAttachmentManager()));
Shape geometryModel = new Shape();
geometryModel.setProperty(MeshProperty.TYPE, ShapeType.Sphere.toString());
BasicView geometryView = new BasicView();
ShapeController geometry = new ShapeController(geometryModel,
geometryView);
Geometry geometry = GeometryFactory.eINSTANCE.createGeometry();
ShapeController sphere1 = (ShapeController) geometry.clone();
ShapeController cube1 = (ShapeController) geometry.clone();
ShapeController union1 = (ShapeController) geometry.clone();
ShapeController complement1 = (ShapeController) geometry.clone();
ShapeController intersection1 = (ShapeController) geometry.clone();
Sphere sphere1 = GeometryFactory.eINSTANCE.createSphere();
Cube cube1 = GeometryFactory.eINSTANCE.createCube();
Union union1 = GeometryFactory.eINSTANCE.createUnion();
Complement complement1 = GeometryFactory.eINSTANCE.createComplement();
Intersection intersection1 = GeometryFactory.eINSTANCE
.createIntersection();
// Put them all in a GeometryComponent
GeometryComponent geometryComponent = new GeometryComponent();
geometryComponent.setGeometry(geometry);
geometryComponent.getGeometry().addEntity(sphere1);
geometryComponent.getGeometry().addEntity(cube1);
geometryComponent.getGeometry().addEntity(union1);
geometryComponent.getGeometry().addEntity(complement1);
geometryComponent.getGeometry().addEntity(sphere1);
geometryComponent.getGeometry().addNode(sphere1);
geometryComponent.getGeometry().addNode(cube1);
geometryComponent.getGeometry().addNode(union1);
geometryComponent.getGeometry().addNode(complement1);
geometryComponent.getGeometry().addNode(sphere1);
Object[] expectedElements = new Object[] { sphere1, cube1, union1,
complement1, sphere1 };
......
......@@ -15,14 +15,11 @@ package org.eclipse.ice.client.widgets.test.geometry;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.eclipse.eavp.viz.modeling.base.BasicView;
import org.eclipse.eavp.viz.modeling.properties.MeshProperty;
import org.eclipse.eavp.viz.modeling.ShapeController;
import org.eclipse.eavp.viz.modeling.Shape;
import org.eclipse.eavp.viz.service.geometry.shapes.GeometryMeshProperty;
import org.eclipse.eavp.viz.service.geometry.shapes.OperatorType;
import org.eclipse.eavp.viz.service.geometry.shapes.ShapeType;
import org.eclipse.eavp.viz.service.geometry.widgets.ShapeTreeLabelProvider;
import org.eclipse.january.geometry.Cube;
import org.eclipse.january.geometry.GeometryFactory;
import org.eclipse.january.geometry.Intersection;
import org.eclipse.january.geometry.Union;
import org.junit.Test;
/**
......@@ -67,16 +64,8 @@ public class ShapeTreeLabelProviderTest {
// Any input should produce a null return value
// Create a shape
Shape geometryModel = new Shape();
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
ShapeController cube1 = (ShapeController) geometryShape.clone();
cube1.setProperty(MeshProperty.TYPE, ShapeType.Cube.toString());
ShapeController intersection1 = (ShapeController) geometryShape.clone();
intersection1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Intersection.toString());
Cube cube1 = GeometryFactory.eINSTANCE.createCube();
Intersection intersection1 = GeometryFactory.eINSTANCE.createIntersection();
assertNull(labelProvider.getImage(cube1));
assertNull(labelProvider.getImage(intersection1));
......@@ -98,42 +87,30 @@ public class ShapeTreeLabelProviderTest {
// Create some named shapes
// Create a shape
Shape geometryModel = new Shape();
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
ShapeController cube1 = (ShapeController) geometryShape.clone();
cube1.setProperty(MeshProperty.TYPE, ShapeType.Cube.toString());
ShapeController union1 = (ShapeController) geometryShape.clone();
union1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Union.toString());
ShapeController intersection1 = (ShapeController) geometryShape.clone();
intersection1.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Intersection.toString());
Cube cube1 = GeometryFactory.eINSTANCE.createCube();
Union union1 = GeometryFactory.eINSTANCE.createUnion();
Intersection intersection1 = GeometryFactory.eINSTANCE.createIntersection();
cube1.setProperty(MeshProperty.NAME, "KUB");
cube1.setName("KUB");
intersection1.setProperty(MeshProperty.NAME, "INTRASECSION");
intersection1.setName("INTRASECSION");
union1.setProperty(MeshProperty.NAME, "Not a name");
union1.setProperty(MeshProperty.ID, "1111");
union1.setName("Not a name");
union1.setId(1111);
// Check that the ShapeTreeLabelProvider returns the correct names
// with the format "<name> <id>"
String expectedCube1Text = cube1.getProperty(MeshProperty.NAME) + " "
+ cube1.getProperty(MeshProperty.ID);
String expectedCube1Text = cube1.getName() + " "
+ cube1.getId();
assertTrue(labelProvider.getText(cube1).equals(expectedCube1Text));
String expectedIntersection1Text = intersection1.getProperty(
MeshProperty.NAME) + " " + intersection1.getProperty(MeshProperty.ID);
String expectedIntersection1Text = intersection1.getName() + " " + intersection1.getId();
assertTrue(labelProvider.getText(intersection1)
.equals(expectedIntersection1Text));
String expectedUnion1Text = union1.getProperty(MeshProperty.NAME) + " "
+ union1.getProperty(MeshProperty.ID);
String expectedUnion1Text = union1.getName() + " "
+ union1.getId();
assertTrue(labelProvider.getText(union1).equals(expectedUnion1Text));
// Check a null parameter
......
......@@ -11,7 +11,9 @@ Require-Bundle: org.eclipse.ice.datastructures,
org.eclipse.nebula.widgets.nattable.core;bundle-version="1.3.0",
org.eclipse.nebula.widgets.nattable.extension.glazedlists;bundle-version="1.3.0",
org.eclipse.remote.ui;bundle-version="2.0.0",
org.eclipse.swt
org.eclipse.swt,
org.eclipse.eavp.geometry.view.model;bundle-version="0.1.0",
org.eclipse.january.geometry.model;bundle-version="1.0.0"
Import-Package:
com.sun.jersey.api.client;version="1.17.0",
org.apache.commons.io,
......@@ -37,7 +39,6 @@ Import-Package:
org.eclipse.eavp.viz.modeling.properties,
org.eclipse.eavp.viz.service,
org.eclipse.eavp.viz.service.csv,
org.eclipse.eavp.viz.service.geometry.shapes,
org.eclipse.eavp.viz.service.geometry.widgets,
org.eclipse.eavp.viz.service.internal,
org.eclipse.eavp.viz.service.mesh.datastructures,
......
......@@ -64,6 +64,12 @@ public class ICEGeometryPage extends ICEFormPage
*/
private IVizService service;
/**
* The IVizCanvas responsible for drawing the composite this page will
* display.
*/
private IVizCanvas vizCanvas;
/**
* <p>
* This sets the FormEditor to be opened on, as well as the id and title
......@@ -144,6 +150,8 @@ public class ICEGeometryPage extends ICEFormPage
ShapeTreeView shapeTreeView = (ShapeTreeView) getSite()
.getWorkbenchWindow().getActivePage()
.findView(ShapeTreeView.ID);
shapeTreeView.setRenderElementHolder(
vizCanvas.getRenderElementHolder(geometryComp.getGeometry()));
shapeTreeView.setGeometry(geometryComp.getGeometry());
return;
......@@ -191,14 +199,11 @@ public class ICEGeometryPage extends ICEFormPage
// Get Geometry service from factory
IVizServiceFactory factory = editor.getVizServiceFactory();
service = factory.get("ICE Geometry Editor");
((ShapeTreeView) getSite().getWorkbenchWindow().getActivePage()
.findView(ShapeTreeView.ID)).setFactory(service.getControllerProviderFactory());
geometryComp.setService(service);
// Create and draw geometry canvas
try {
IVizCanvas vizCanvas = service
.createCanvas(geometryComp.getGeometry());
vizCanvas = service.createCanvas(geometryComp.getGeometry());
vizCanvas.draw(parent);
} catch (Exception e) {
......
......@@ -21,6 +21,7 @@ Import-Package: ca.odell.glazedlists,
org.eclipse.emf.ecore.xmi,
org.eclipse.emf.ecore.xmi.impl,
org.eclipse.emf.ecore.xmi.util,
org.eclipse.january.geometry,
org.osgi.framework;version="1.6.0",
org.osgi.util.tracker;version="1.5.0",
org.slf4j;version="1.7.2"
......
......@@ -20,17 +20,17 @@ import static org.junit.Assert.fail;
import java.util.List;
import org.eclipse.eavp.viz.service.geometry.shapes.GeometryMeshProperty;
import org.eclipse.eavp.viz.service.geometry.shapes.OperatorType;
import org.eclipse.eavp.viz.service.geometry.shapes.ShapeType;
import org.eclipse.eavp.viz.modeling.base.BasicController;
import org.eclipse.eavp.viz.modeling.base.BasicView;
import org.eclipse.eavp.viz.modeling.base.IController;
import org.eclipse.eavp.viz.modeling.properties.MeshProperty;
import org.eclipse.eavp.viz.modeling.ShapeController;
import org.eclipse.eavp.viz.modeling.Shape;
import org.eclipse.ice.datastructures.ICEObject.Component;
import org.eclipse.ice.datastructures.form.GeometryComponent;
import org.eclipse.january.geometry.Cube;
import org.eclipse.january.geometry.Cylinder;
import org.eclipse.january.geometry.Geometry;
import org.eclipse.january.geometry.GeometryFactory;
import org.eclipse.january.geometry.INode;
import org.eclipse.january.geometry.Intersection;
import org.eclipse.january.geometry.Operator;
import org.eclipse.january.geometry.Shape;
import org.eclipse.january.geometry.Sphere;
import org.junit.Test;
/**
......@@ -53,45 +53,40 @@ public class GeometryComponentTester {
public void checkAddShapes() {
// Create a shape
Shape geometryModel = new Shape();
geometryModel.setProperty(MeshProperty.TYPE,
ShapeType.Sphere.toString());
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
Geometry geometryShape = GeometryFactory.eINSTANCE.createGeometry();
// Instantiate a GeometryComponent
GeometryComponent geometry = new GeometryComponent();
geometry.setGeometry(geometryShape);
// Add a PrimitiveShape
ShapeController sphere = (ShapeController) geometryShape.clone();
geometry.getGeometry().addEntity(sphere);
assertEquals(1, geometry.getGeometry().getEntities().size());
assertEquals(sphere, geometry.getGeometry().getEntities().get(0));
Sphere sphere = GeometryFactory.eINSTANCE.createSphere();
geometry.getGeometry().addNode(sphere);
assertEquals(1, geometry.getGeometry().getNodes().size());
assertTrue(sphere == geometry.getGeometry().getNodes().get(0));
// Add a ComplexShape
ShapeController complex = (ShapeController) geometryShape.clone();
geometry.getGeometry().addEntity(complex);
assertEquals(2, geometry.getGeometry().getEntities().size());
assertEquals(complex, geometry.getGeometry().getEntities().get(1));
Operator complex = GeometryFactory.eINSTANCE.createOperator();
geometry.getGeometry().addNode(complex);
assertEquals(2, geometry.getGeometry().getNodes().size());
assertTrue(complex == geometry.getGeometry().getNodes().get(1));
// Try adding null
geometry.getGeometry().addEntity(null);
assertEquals(2, geometry.getGeometry().getEntities().size());
geometry.getGeometry().addNode(null);
assertEquals(2, geometry.getGeometry().getNodes().size());
// Add a shape with an unknown concrete type
ShapeController unknownShape = (ShapeController) geometryShape.clone();
geometry.getGeometry().addEntity(unknownShape);
assertEquals(3, geometry.getGeometry().getEntities().size());
assertEquals(unknownShape, geometry.getGeometry().getEntities().get(2));
Shape unknownShape = GeometryFactory.eINSTANCE.createShape();
geometry.getGeometry().addNode(unknownShape);
assertEquals(3, geometry.getGeometry().getNodes().size());
assertTrue(unknownShape == geometry.getGeometry().getNodes().get(2));
// Remove the second shape
geometry.getGeometry().removeEntity(complex);
assertEquals(2, geometry.getGeometry().getEntities().size());
geometry.getGeometry().removeNode(complex);
assertEquals(2, geometry.getGeometry().getNodes().size());
// Steal the list from the GeometryComponent
List<IController> shapes = geometry.getGeometry().getEntities();
List<INode> shapes = geometry.getGeometry().getNodes();
assertEquals(2, shapes.size());
// Remove a shape from the stolen list
......@@ -147,12 +142,7 @@ public class GeometryComponentTester {
public void checkNotifications() {
// Create a shape
Shape geometryModel = new Shape();
geometryModel.setProperty(MeshProperty.TYPE,
ShapeType.Sphere.toString());
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
Geometry geometryShape = GeometryFactory.eINSTANCE.createGeometry();
// Create a new listener and add it to a GeometryComponent
GeometryComponent geometry = new GeometryComponent();
......@@ -161,8 +151,7 @@ public class GeometryComponentTester {
geometry.register(listener);
// Modify geometryComponent's shapes list
geometry.getGeometry()
.addEntity((BasicController) geometryShape.clone());
geometry.getGeometry().addNode(GeometryFactory.eINSTANCE.createShape());
// Check that the listener was notified and reset the listener
assertTrue(listener.wasNotified());
......@@ -257,12 +246,7 @@ public class GeometryComponentTester {
@Test
public void checkEquality() {
Shape geometryModel = new Shape();
geometryModel.setProperty(MeshProperty.TYPE,
ShapeType.Sphere.toString());
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
Geometry geometryShape = GeometryFactory.eINSTANCE.createGeometry();
// Create GeometryComponent to test
GeometryComponent component = new GeometryComponent();
......@@ -270,23 +254,20 @@ public class GeometryComponentTester {
GeometryComponent unEqualComponent = new GeometryComponent();
GeometryComponent transitiveComponent = new GeometryComponent();
component.setGeometry(geometryShape);
equalComponent.setGeometry((ShapeController) geometryShape.clone());
unEqualComponent.setGeometry((ShapeController) geometryShape.clone());
transitiveComponent
.setGeometry((ShapeController) geometryShape.clone());
equalComponent.setGeometry((Geometry) geometryShape.clone());
unEqualComponent.setGeometry((Geometry) geometryShape.clone());
transitiveComponent.setGeometry((Geometry) geometryShape.clone());
// Change values
ShapeController shape = (ShapeController) geometryShape.clone();
shape.setProperty(MeshProperty.TYPE, ShapeType.Cylinder.toString());
ShapeController weirdShape = (ShapeController) geometryShape.clone();
shape.setProperty(GeometryMeshProperty.OPERATOR,
OperatorType.Intersection.toString());
Cylinder shape = GeometryFactory.eINSTANCE.createCylinder();
Intersection weirdShape = GeometryFactory.eINSTANCE
.createIntersection();
component.getGeometry().addEntity(shape);
equalComponent.getGeometry().addEntity(shape);
transitiveComponent.getGeometry().addEntity(shape);
component.getGeometry().addNode(shape);
equalComponent.getGeometry().addNode((Cylinder) shape.clone());
transitiveComponent.getGeometry().addNode((Cylinder) shape.clone());
unEqualComponent.getGeometry().addEntity(weirdShape);
unEqualComponent.getGeometry().addNode(weirdShape);
// Set ICEObject data
component.setId(1);
......@@ -354,20 +335,15 @@ public class GeometryComponentTester {
public void checkCreation() {
// Create a shape
Shape geometryModel = new Shape();
geometryModel.setProperty(MeshProperty.TYPE,
ShapeType.Sphere.toString());
BasicView geometryView = new BasicView();
ShapeController geometryShape = new ShapeController(geometryModel,
geometryView);
Geometry geometryShape = GeometryFactory.eINSTANCE.createGeometry();
// Create a new GeometryComponent