use of com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry in project archi by archimatetool.
the class ArchimateDiagramEditorPalette method createConnectionCreationToolEntry.
private ToolEntry createConnectionCreationToolEntry(EClass eClass, String description) {
ToolEntry entry = new ExtConnectionCreationToolEntry(ArchiLabelProvider.INSTANCE.getDefaultName(eClass), description, new ArchimateDiagramModelFactory(eClass), ArchiLabelProvider.INSTANCE.getImageDescriptor(eClass), ArchiLabelProvider.INSTANCE.getImageDescriptor(eClass));
// Ensure Tool gets deselected
entry.setToolProperty(AbstractTool.PROPERTY_UNLOAD_WHEN_FINISHED, true);
return entry;
}
use of com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry in project archi by archimatetool.
the class SketchEditorPalette method createConnectionCreationToolEntry.
private ConnectionCreationToolEntry createConnectionCreationToolEntry(EClass eClass, int type, String name, String description, ImageDescriptor icon) {
ConnectionCreationToolEntry entry = new ExtConnectionCreationToolEntry(name, description, new SketchModelFactory(eClass, type), icon, icon);
// Ensure Tool gets deselected
entry.setToolProperty(AbstractTool.PROPERTY_UNLOAD_WHEN_FINISHED, true);
return entry;
}
use of com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry in project archi by archimatetool.
the class CanvasEditorPalette method createConnectionCreationToolEntry.
private ConnectionCreationToolEntry createConnectionCreationToolEntry(EClass eClass, int type, String name, String description, ImageDescriptor icon) {
ConnectionCreationToolEntry entry = new ExtConnectionCreationToolEntry(name, description, new CanvasModelFactory(eClass, type), icon, icon);
// Ensure Tool gets deselected
entry.setToolProperty(AbstractTool.PROPERTY_UNLOAD_WHEN_FINISHED, true);
return entry;
}
Aggregations