Search in sources :

Example 91 with ImageDescriptor

use of org.eclipse.jface.resource.ImageDescriptor in project tdi-studio-se by Talend.

the class CreateComponentWizard method initializeDefaultPageImageDescriptor.

/*
     * (non-Javadoc) Method declared on BasicNewResourceWizard.
     */
@Override
protected void initializeDefaultPageImageDescriptor() {
    //$NON-NLS-1$
    ImageDescriptor desc = ImageLib.getImageDescriptor(ImageLib.NEWCOMPONENT_WIZARD);
    setDefaultPageImageDescriptor(desc);
}
Also used : ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Example 92 with ImageDescriptor

use of org.eclipse.jface.resource.ImageDescriptor in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createEllipse10CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createEllipse10CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.EllipseBusinessItem_1010);
    largeImage = smallImage;
    final List elementTypes = new ArrayList();
    elementTypes.add(BusinessElementTypes.EllipseBusinessItem_1010);
    ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Ellipse"), Messages.getString("BusinessPaletteFactory.CreateEllipse"), 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 93 with ImageDescriptor

use of org.eclipse.jface.resource.ImageDescriptor in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createActor9CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createActor9CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.ActorBusinessItem_1009);
    largeImage = smallImage;
    final List elementTypes = new ArrayList();
    elementTypes.add(BusinessElementTypes.ActorBusinessItem_1009);
    ToolEntry result = new NodeToolEntry(Messages.getString("BusinessPaletteFactory.Actor"), Messages.getString("BusinessPaletteFactory.CreateActor"), 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 94 with ImageDescriptor

use of org.eclipse.jface.resource.ImageDescriptor in project tdi-studio-se by Talend.

the class BusinessPaletteFactory method createDirectionalRelationship14CreationTool.

/**
     * @generated NOT
     */
private ToolEntry createDirectionalRelationship14CreationTool() {
    ImageDescriptor smallImage;
    ImageDescriptor largeImage;
    smallImage = BusinessElementTypes.getImageDescriptor(BusinessElementTypes.DirectionalBusinessItemRelationship_3002);
    largeImage = smallImage;
    final List relationshipTypes = new ArrayList();
    relationshipTypes.add(BusinessElementTypes.DirectionalBusinessItemRelationship_3002);
    ToolEntry result = new LinkToolEntry(//$NON-NLS-1$ //$NON-NLS-2$
    Messages.getString("BusinessPaletteFactory.DirectionalRelationShip"), //$NON-NLS-1$ //$NON-NLS-2$
    Messages.getString("BusinessPaletteFactory.CreateDirectionalRelationShip"), smallImage, largeImage, 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 95 with ImageDescriptor

use of org.eclipse.jface.resource.ImageDescriptor 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)

Aggregations

ImageDescriptor (org.eclipse.jface.resource.ImageDescriptor)106 Image (org.eclipse.swt.graphics.Image)25 ArrayList (java.util.ArrayList)21 List (java.util.List)18 ToolEntry (org.eclipse.gef.palette.ToolEntry)14 URL (java.net.URL)12 ImageData (org.eclipse.swt.graphics.ImageData)11 ResourceImageDescriptor (de.jaret.util.ui.ResourceImageDescriptor)9 Point (org.eclipse.swt.graphics.Point)6 Node (org.talend.designer.core.ui.editor.nodes.Node)6 Path (org.eclipse.core.runtime.Path)5 JavaElementImageDescriptor (org.eclipse.jdt.ui.JavaElementImageDescriptor)5 File (java.io.File)4 HashMap (java.util.HashMap)4 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)4 IComponent (org.talend.core.model.components.IComponent)4 INode (org.talend.core.model.process.INode)4 MalformedURLException (java.net.MalformedURLException)3 Set (java.util.Set)3 IConfigurationElement (org.eclipse.core.runtime.IConfigurationElement)3