Search in sources :

Example 1 with ExtConnectionCreationToolEntry

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;
}
Also used : ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) PanningSelectionToolEntry(org.eclipse.gef.palette.PanningSelectionToolEntry) ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) ToolEntry(org.eclipse.gef.palette.ToolEntry) FormatPainterToolEntry(com.archimatetool.editor.diagram.tools.FormatPainterToolEntry) ConnectionCreationToolEntry(org.eclipse.gef.palette.ConnectionCreationToolEntry)

Example 2 with ExtConnectionCreationToolEntry

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;
}
Also used : ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) ConnectionCreationToolEntry(org.eclipse.gef.palette.ConnectionCreationToolEntry)

Example 3 with ExtConnectionCreationToolEntry

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;
}
Also used : ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) ExtConnectionCreationToolEntry(com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry) ConnectionCreationToolEntry(org.eclipse.gef.palette.ConnectionCreationToolEntry)

Aggregations

ExtConnectionCreationToolEntry (com.archimatetool.editor.diagram.tools.ExtConnectionCreationToolEntry)3 ConnectionCreationToolEntry (org.eclipse.gef.palette.ConnectionCreationToolEntry)3 FormatPainterToolEntry (com.archimatetool.editor.diagram.tools.FormatPainterToolEntry)1 PanningSelectionToolEntry (org.eclipse.gef.palette.PanningSelectionToolEntry)1 ToolEntry (org.eclipse.gef.palette.ToolEntry)1