Examples of createImage()


Examples of org.eclipse.graphiti.services.IGaService.createImage()

    {
      // create shape for image
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set image
      final Image image = gaService.createImage(shape, ImageProvider.getKeyForLargeIcon(addedClass.getIconName()));
      gaService.setLocationAndSize(image, imageRect.x, imageRect.y, imageRect.width, imageRect.height);

      // if addedClass has no resource we add it to the resource of the diagram
      // in a real scenario the business model would have its own resource
//      if (addedClass.eResource() == null) {
View Full Code Here

Examples of org.eclipse.jface.resource.CompositeImageDescriptor.createImage()

                protected Point getSize() {
                    return baseImageSize;
                }
            };
            //
            result = compositImageDesc.createImage();
            decoratedMap.put(decorator, result);
        }
        return result;
    }
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

        if ( image == null )
        {
            ImageDescriptor id = getImageDescriptor( key );
            if ( id != null )
            {
                image = id.createImage();
                getImageRegistry().put( key, image );
            }
        }
        return image;
    }
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

        if ( image == null )
        {
            ImageDescriptor id = getImageDescriptor( key );
            if ( id != null )
            {
                image = id.createImage();
                getImageRegistry().put( key, image );
            }
        }
        return image;
    }
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

    public BndSourceEditorPage(String id, BndEditor formEditor) {
        this.id = id;
        this.formEditor = formEditor;
        formEditor.getEditModel().addPropertyChangeListener(propChangeListener);
        ImageDescriptor iconDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(Plugin.PLUGIN_ID, "icons/page_white_text.png");
        icon = iconDescriptor.createImage();
    }

    @Override
    public void dispose() {
        this.formEditor.getEditModel().removePropertyChangeListener(propChangeListener);
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

        Image image = cache.get(path);
        if (image != null)
            return image;

        ImageDescriptor descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, path);
        image = descriptor.createImage(returnMissingImageOnError);
        cache.put(path, image);

        return image;
    }
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

        }

        if (iconDescriptor != null) {
            icon = imgCache.get(iconDescriptor);
            if (icon == null) {
                icon = iconDescriptor.createImage(device);
                imgCache.put(iconDescriptor, icon);
            }
        }

        if (icon != null)
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

    public BndSourceEditorPage(String id, BndEditor formEditor) {
        this.id = id;
        this.formEditor = formEditor;
        formEditor.getEditModel().addPropertyChangeListener(propChangeListener);
        ImageDescriptor iconDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(Plugin.PLUGIN_ID, "icons/page_white_text.png");
        icon = iconDescriptor.createImage();
    }

    @Override
    public void dispose() {
        this.formEditor.getEditModel().removePropertyChangeListener(propChangeListener);
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

        }

        if (iconDescriptor != null) {
            icon = imgCache.get(iconDescriptor);
            if (icon == null) {
                icon = iconDescriptor.createImage(device);
                imgCache.put(iconDescriptor, icon);
            }
        }

        if (icon != null)
View Full Code Here

Examples of org.eclipse.jface.resource.ImageDescriptor.createImage()

            if (configElem != null) {
                String iconPath = configElem.getAttribute("icon");
                if (iconPath != null) {
                    ImageDescriptor descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(configElem.getContributor().getName(), iconPath);
                    if (descriptor != null) {
                        image = descriptor.createImage();
                        images.put(className, image);
                    }
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.