Search in sources :

Example 11 with ICreationFactory

use of com.archimatetool.editor.diagram.ICreationFactory in project archi by archimatetool.

the class SketchModelFactoryTests method testGetNewObjectGroup.

@Test
public void testGetNewObjectGroup() {
    ICreationFactory factory = new SketchModelFactory(IArchimatePackage.eINSTANCE.getDiagramModelGroup());
    IDiagramModelGroup group = (IDiagramModelGroup) factory.getNewObject();
    assertEquals("Group", group.getName());
}
Also used : ICreationFactory(com.archimatetool.editor.diagram.ICreationFactory) IDiagramModelGroup(com.archimatetool.model.IDiagramModelGroup) Test(org.junit.Test)

Aggregations

ICreationFactory (com.archimatetool.editor.diagram.ICreationFactory)11 Test (org.junit.Test)10 ArchimateDiagramEditor (com.archimatetool.editor.diagram.ArchimateDiagramEditor)2 IDiagramModelGroup (com.archimatetool.model.IDiagramModelGroup)2 RGB (org.eclipse.swt.graphics.RGB)2 ICanvasModelBlock (com.archimatetool.canvas.model.ICanvasModelBlock)1 ICanvasModelConnection (com.archimatetool.canvas.model.ICanvasModelConnection)1 ICanvasModelImage (com.archimatetool.canvas.model.ICanvasModelImage)1 ICanvasModelSticky (com.archimatetool.canvas.model.ICanvasModelSticky)1 ArchimateDiagramModelFactory (com.archimatetool.editor.diagram.ArchimateDiagramModelFactory)1 SketchEditor (com.archimatetool.editor.diagram.sketch.SketchEditor)1 IArchimateConcept (com.archimatetool.model.IArchimateConcept)1 IArchimateElement (com.archimatetool.model.IArchimateElement)1 IBounds (com.archimatetool.model.IBounds)1 IDiagramModelConnection (com.archimatetool.model.IDiagramModelConnection)1 IDiagramModelContainer (com.archimatetool.model.IDiagramModelContainer)1 IDiagramModelNote (com.archimatetool.model.IDiagramModelNote)1 IDiagramModelObject (com.archimatetool.model.IDiagramModelObject)1 IDiagramModelReference (com.archimatetool.model.IDiagramModelReference)1 ISketchModelActor (com.archimatetool.model.ISketchModelActor)1