use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.
the class BusinessPaletteFactory method createList7CreationTool.
/**
* @generated NOT
*/
private ToolEntry createList7CreationTool() {
ImageDescriptor smallImage;
ImageDescriptor largeImage;
smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.ListBusinessItem_1005);
largeImage = smallImage;
final List elementTypes = new ArrayList();
elementTypes.add(BusinessElementTypes.ListBusinessItem_1005);
ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.List"), Messages.getString("BusinessPaletteFactory.ListComment"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
elementTypes);
return result;
}
use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.
the class BusinessPaletteFactory method createTerminal3CreationTool.
/**
* @generated NOT
*/
private ToolEntry createTerminal3CreationTool() {
ImageDescriptor smallImage;
ImageDescriptor largeImage;
smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.TerminalBusinessItem_1002);
largeImage = smallImage;
final List elementTypes = new ArrayList();
elementTypes.add(BusinessElementTypes.TerminalBusinessItem_1002);
ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Terminal"), Messages.getString("BusinessPaletteFactory.TerminalComment"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
elementTypes);
return result;
}
use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.
the class BusinessPaletteFactory method createBidirectionalRelationship15CreationTool.
/**
* @generated NOT
*/
private ToolEntry createBidirectionalRelationship15CreationTool() {
ImageDescriptor smallImage;
ImageDescriptor largeImage;
smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.BidirectionalBusinessItemRelationship_3003);
largeImage = smallImage;
final List relationshipTypes = new ArrayList();
relationshipTypes.add(BusinessElementTypes.BidirectionalBusinessItemRelationship_3003);
ToolEntry result = new LinkToolEntry(//$NON-NLS-1$ //$NON-NLS-2$
Messages.getString("BusinessPaletteFactory.BidirectionalRelationShip"), //$NON-NLS-1$ //$NON-NLS-2$
Messages.getString("BusinessPaletteFactory.CreateBidirectionalRelationShip"), smallImage, largeImage, relationshipTypes);
return result;
}
use of org.eclipse.gef.palette.ToolEntry in project cubrid-manager by CUBRID.
the class PaletteFactory method createComponentsDrawer.
/**
* create components drawer
*
* @return drawer
*/
private static PaletteContainer createComponentsDrawer() {
PaletteDrawer drawer = new PaletteDrawer(Messages.lblReplComponent);
drawer.setLargeIcon(CubridManagerUIPlugin.getImageDescriptor("icons/replication/replication.gif"));
drawer.setSmallIcon(CubridManagerUIPlugin.getImageDescriptor("icons/replication/replication.gif"));
List<ToolEntry> toolEntries = new ArrayList<ToolEntry>();
ToolEntry toolEntry = new CombinedTemplateCreationEntry(Messages.lblHostTool, Messages.descHostTool, HostNode.class, new SimpleFactory(HostNode.class), CubridManagerUIPlugin.getImageDescriptor("icons/navigator/host.png"), CubridManagerUIPlugin.getImageDescriptor("icons/navigator/host.png"));
toolEntries.add(toolEntry);
toolEntry = new CombinedTemplateCreationEntry(Messages.lblMasterTool, Messages.descMasterTool, MasterNode.class, new SimpleFactory(MasterNode.class), CubridManagerUIPlugin.getImageDescriptor("icons/replication/master.png"), CubridManagerUIPlugin.getImageDescriptor("icons/replication/master.png"));
toolEntries.add(toolEntry);
toolEntry = new CombinedTemplateCreationEntry(Messages.lblDistributorTool, Messages.descDistributorTool, DistributorNode.class, new SimpleFactory(DistributorNode.class), CubridManagerUIPlugin.getImageDescriptor("icons/replication/distributor.gif"), CubridManagerUIPlugin.getImageDescriptor("icons/replication/distributor.gif"));
toolEntries.add(toolEntry);
toolEntry = new CombinedTemplateCreationEntry(Messages.lblSlaveTool, Messages.descSlaveTool, SlaveNode.class, new SimpleFactory(SlaveNode.class), CubridManagerUIPlugin.getImageDescriptor("icons/replication/slave.png"), CubridManagerUIPlugin.getImageDescriptor("icons/replication/slave.png"));
toolEntries.add(toolEntry);
drawer.addAll(toolEntries);
return drawer;
}
use of org.eclipse.gef.palette.ToolEntry in project cubrid-manager by CUBRID.
the class PaletteFactory method createControlGroup.
/**
* create control group
*
* @param root PaletteRoot
* @return componentGroup
*/
private static PaletteContainer createControlGroup(PaletteRoot root) {
PaletteGroup componentGroup = new PaletteGroup(Messages.lblComponentGrp);
List<ToolEntry> toolEntries = new ArrayList<ToolEntry>();
ToolEntry toolEntry = new SelectionToolEntry();
toolEntry.setLabel(Messages.lblSelectTool);
toolEntry.setDescription(Messages.descSelectTool);
toolEntries.add(toolEntry);
root.setDefaultEntry(toolEntry);
toolEntry = new ConnectionCreationToolEntry(Messages.lblConnectionTool, Messages.descConnectionTool, null, CubridManagerUIPlugin.getImageDescriptor("icons/replication/arrow.gif"), CubridManagerUIPlugin.getImageDescriptor("icons/replication/arrow.gif"));
toolEntries.add(toolEntry);
componentGroup.addAll(toolEntries);
return componentGroup;
}
Aggregations