Search in sources :

Example 16 with ToolEntry

use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createData4CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createData4CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.DataBusinessItem_1006);
    largeImage = smallImage;
    final List elementTypes = new ArrayList();
    elementTypes.add(BusinessElementTypes.DataBusinessItem_1006);
    ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Data"), Messages.getString("BusinessPaletteFactory.DataComment"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
    elementTypes);
    return result;
}
Also used : ArrayList(java.util.ArrayList) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) ArrayList(java.util.ArrayList) List(java.util.List) ToolEntry(org.eclipse.gef.palette.ToolEntry)

Example 17 with ToolEntry

use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createGear11CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createGear11CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.GearBusinessItem_1011);
    largeImage = smallImage;
    final List elementTypes = new ArrayList();
    elementTypes.add(BusinessElementTypes.GearBusinessItem_1011);
    ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Gear"), Messages.getString("BusinessPaletteFactory.CreateGear"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
    elementTypes);
    return result;
}
Also used : ArrayList(java.util.ArrayList) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) ArrayList(java.util.ArrayList) List(java.util.List) ToolEntry(org.eclipse.gef.palette.ToolEntry)

Example 18 with ToolEntry

use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createRelationship13CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createRelationship13CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.BusinessItemRelationship_3001);
    largeImage = smallImage;
    final List relationshipTypes = new ArrayList();
    relationshipTypes.add(BusinessElementTypes.BusinessItemRelationship_3001);
    ToolEntry result = new LinkToolEntry(Messages.getString("BusinessPaletteFactory.Relationshop"), Messages.getString("BusinessPaletteFactory.RelationshopComment"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
    relationshipTypes);
    return result;
}
Also used : ArrayList(java.util.ArrayList) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) ArrayList(java.util.ArrayList) List(java.util.List) ToolEntry(org.eclipse.gef.palette.ToolEntry)

Example 19 with ToolEntry

use of org.eclipse.gef.palette.ToolEntry in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createDocument5CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createDocument5CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.DocumentBusinessItem_1003);
    largeImage = smallImage;
    final List elementTypes = new ArrayList();
    elementTypes.add(BusinessElementTypes.DocumentBusinessItem_1003);
    ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Document"), Messages.getString("BusinessPaletteFactory.DocuemntComment"), smallImage, largeImage, //$NON-NLS-1$ //$NON-NLS-2$
    elementTypes);
    return result;
}
Also used : ArrayList(java.util.ArrayList) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) ArrayList(java.util.ArrayList) List(java.util.List) ToolEntry(org.eclipse.gef.palette.ToolEntry)

Aggregations

ToolEntry (org.eclipse.gef.palette.ToolEntry)19 ArrayList (java.util.ArrayList)17 List (java.util.List)15 ImageDescriptor (org.eclipse.jface.resource.ImageDescriptor)14 ConnectionCreationToolEntry (org.eclipse.gef.palette.ConnectionCreationToolEntry)4 SelectionToolEntry (org.eclipse.gef.palette.SelectionToolEntry)3 CombinedTemplateCreationEntry (org.eclipse.gef.palette.CombinedTemplateCreationEntry)2 PaletteDrawer (org.eclipse.gef.palette.PaletteDrawer)2 PaletteGroup (org.eclipse.gef.palette.PaletteGroup)2 DistributorNode (com.cubrid.cubridmanager.ui.replication.editor.model.DistributorNode)1 HostNode (com.cubrid.cubridmanager.ui.replication.editor.model.HostNode)1 MasterNode (com.cubrid.cubridmanager.ui.replication.editor.model.MasterNode)1 SlaveNode (com.cubrid.cubridmanager.ui.replication.editor.model.SlaveNode)1 EventObject (java.util.EventObject)1 EditPart (org.eclipse.gef.EditPart)1 RootEditPart (org.eclipse.gef.RootEditPart)1 AbstractEditPart (org.eclipse.gef.editparts.AbstractEditPart)1 ScalableFreeformRootEditPart (org.eclipse.gef.editparts.ScalableFreeformRootEditPart)1 MarqueeToolEntry (org.eclipse.gef.palette.MarqueeToolEntry)1 PaletteContainer (org.eclipse.gef.palette.PaletteContainer)1