drawer.addAll(entries);
return drawer;
}
static private PaletteContainer createControlGroup(PaletteRoot root){
PaletteGroup controlGroup = new PaletteGroup(
LogicMessages.LogicPlugin_Category_ControlGroup_Label);
List entries = new ArrayList();
ToolEntry tool = new PanningSelectionToolEntry();
entries.add(tool);
root.setDefaultEntry(tool);
PaletteStack marqueeStack = new PaletteStack(LogicMessages.Marquee_Stack, "", null); //$NON-NLS-1$
marqueeStack.add(new MarqueeToolEntry());
MarqueeToolEntry marquee = new MarqueeToolEntry();
marquee.setToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR,
new Integer(MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_TOUCHED));
marqueeStack.add(marquee);
marquee = new MarqueeToolEntry();
marquee.setToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR,
new Integer(MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_TOUCHED
| MarqueeSelectionTool.BEHAVIOR_NODES_CONTAINED));
marqueeStack.add(marquee);
marqueeStack.setUserModificationPermission(PaletteEntry.PERMISSION_NO_MODIFICATION);
entries.add(marqueeStack);
tool = new ConnectionCreationToolEntry(
LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_ConnectionCreationTool_Label,
LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_ConnectionCreationTool_Description,
null,
ImageDescriptor.createFromFile(Circuit.class, "icons/connection16.gif"),//$NON-NLS-1$
ImageDescriptor.createFromFile(Circuit.class, "icons/connection24.gif")//$NON-NLS-1$
);
entries.add(tool);
controlGroup.addAll(entries);
return controlGroup;
}