use of com.archimatetool.editor.diagram.editparts.diagram.NoteEditPart in project archi by archimatetool.
the class ArchimateDiagramEditPartFactoryTests method testNoteEditPart.
@Test
public void testNoteEditPart() {
IDiagramModelNote note = IArchimateFactory.eINSTANCE.createDiagramModelNote();
EditPart editPart = editPartFactory.createEditPart(null, note);
assertTrue(editPart instanceof NoteEditPart);
assertEquals(note, editPart.getModel());
}
use of com.archimatetool.editor.diagram.editparts.diagram.NoteEditPart in project archi by archimatetool.
the class NoteUIProviderTests method testCreateEditPart.
@Override
public void testCreateEditPart() {
EditPart editPart = provider.createEditPart();
assertTrue(editPart instanceof NoteEditPart);
}
use of com.archimatetool.editor.diagram.editparts.diagram.NoteEditPart in project archi by archimatetool.
the class PropertiesLabelProviderTests method testGetTextNote.
@Test
public void testGetTextNote() {
// Text for diagram model
IDiagramModelNote note = IArchimateFactory.eINSTANCE.createDiagramModelNote();
String text = provider.getText(new StructuredSelection(note));
assertEquals("Note", text);
// Text for EditPart
NoteEditPart editPart = new NoteEditPart();
editPart.setModel(note);
text = provider.getText(new StructuredSelection(editPart));
assertEquals("Note", text);
}
Aggregations