Search in sources :

Example 1 with ArchimateDiagramEditor

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

the class CanvasModelFactoryTests method testIsUsedFor.

@Test
public void testIsUsedFor() {
    ICreationFactory factory = new CanvasModelFactory(null);
    assertTrue(factory.isUsedFor(new CanvasEditor()));
    assertFalse(factory.isUsedFor(new SketchEditor()));
    assertFalse(factory.isUsedFor(new ArchimateDiagramEditor()));
}
Also used : SketchEditor(com.archimatetool.editor.diagram.sketch.SketchEditor) ArchimateDiagramEditor(com.archimatetool.editor.diagram.ArchimateDiagramEditor) ICreationFactory(com.archimatetool.editor.diagram.ICreationFactory) Test(org.junit.Test)

Example 2 with ArchimateDiagramEditor

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

the class SketchModelFactoryTests method testIsUsedFor.

@Test
public void testIsUsedFor() {
    ICreationFactory factory = new SketchModelFactory(null);
    assertTrue(factory.isUsedFor(new SketchEditor()));
    assertFalse(factory.isUsedFor(new ArchimateDiagramEditor()));
}
Also used : ArchimateDiagramEditor(com.archimatetool.editor.diagram.ArchimateDiagramEditor) ICreationFactory(com.archimatetool.editor.diagram.ICreationFactory) Test(org.junit.Test)

Aggregations

ArchimateDiagramEditor (com.archimatetool.editor.diagram.ArchimateDiagramEditor)2 ICreationFactory (com.archimatetool.editor.diagram.ICreationFactory)2 Test (org.junit.Test)2 SketchEditor (com.archimatetool.editor.diagram.sketch.SketchEditor)1