use of org.eclipse.gef.palette.PanningSelectionToolEntry in project yamcs-studio by yamcs.
the class OPIEditorPaletteFactory method createToolsGroup.
private static void createToolsGroup(PaletteRoot palette) {
var toolbar = new PaletteToolbar("Tools");
// Add a selection tool to the group
ToolEntry tool = new PanningSelectionToolEntry();
toolbar.add(tool);
palette.setDefaultEntry(tool);
tool = new ConnectionCreationToolEntry("Connection", "Create a connection between widgets", new CreationFactory() {
@Override
public Object getObjectType() {
return null;
}
@Override
public Object getNewObject() {
return null;
}
}, CustomMediaFactory.getInstance().getImageDescriptorFromPlugin(OPIBuilderPlugin.PLUGIN_ID, "icons/connection_s16.gif"), CustomMediaFactory.getInstance().getImageDescriptorFromPlugin(OPIBuilderPlugin.PLUGIN_ID, "icons/connection_s24.gif"));
toolbar.add(tool);
palette.add(toolbar);
}
use of org.eclipse.gef.palette.PanningSelectionToolEntry in project archi by archimatetool.
the class ArchimateDiagramEditorPalette method createControlsGroup.
/**
* Create a Group of Controls
*/
private void createControlsGroup() {
PaletteContainer group = new PaletteToolbar(Messages.ArchimateDiagramEditorPalette_0);
// The selection tool
ToolEntry tool = new PanningSelectionToolEntry();
tool.setToolClass(PanningSelectionExtendedTool.class);
group.add(tool);
// Use selection tool as default entry
setDefaultEntry(tool);
PaletteStack stack = createMarqueeSelectionStack();
group.add(stack);
// Format Painter
formatPainterEntry = new FormatPainterToolEntry();
group.add(formatPainterEntry);
add(group);
// Relations group will be inserted before this
// $NON-NLS-1$
add(new PaletteSeparator("relations"));
}
use of org.eclipse.gef.palette.PanningSelectionToolEntry in project archi by archimatetool.
the class CanvasEditorPalette method createControlsGroup.
/**
* Create a Group of Controls
*/
private PaletteContainer createControlsGroup() {
PaletteContainer group = new PaletteToolbar(Messages.CanvasEditorPalette_0);
add(group);
// The selection tool
ToolEntry tool = new PanningSelectionToolEntry();
tool.setToolClass(PanningSelectionExtendedTool.class);
group.add(tool);
// Use selection tool as default entry
setDefaultEntry(tool);
PaletteStack stack = createMarqueeSelectionStack();
group.add(stack);
// Format Painter
formatPainterEntry = new FormatPainterToolEntry();
group.add(formatPainterEntry);
return group;
}
use of org.eclipse.gef.palette.PanningSelectionToolEntry in project archi by archimatetool.
the class SketchEditorPalette method createControlsGroup.
/**
* Create a Group of Controls
*/
private PaletteContainer createControlsGroup() {
PaletteContainer group = new PaletteToolbar(Messages.SketchEditorPalette_0);
add(group);
// The selection tool
ToolEntry tool = new PanningSelectionToolEntry();
tool.setToolClass(PanningSelectionExtendedTool.class);
group.add(tool);
// Use selection tool as default entry
setDefaultEntry(tool);
PaletteStack stack = createMarqueeSelectionStack();
group.add(stack);
// Format Painter
formatPainterEntry = new FormatPainterToolEntry();
group.add(formatPainterEntry);
return group;
}
Aggregations