Package org.eclipse.jface.resource

Examples of org.eclipse.jface.resource.ImageRegistry


       
        java.util.Map<String, TemplateFactory> templateFactories = plugin.getTemplateFactories();
        setWindowTitle(Messages.PrintWizard_Title);
       
        String key = Icons.WIZBAN +"exportpdf_wiz.gif"; //$NON-NLS-1$
        ImageRegistry imageRegistry = plugin.getImageRegistry();       
        ImageDescriptor image = imageRegistry.getDescriptor( key );
        if( image == null ){
            URL banURL = plugin.getBundle().getResource( "icons/" + key ); //$NON-NLS-1$
            image = ImageDescriptor.createFromURL( banURL );
            imageRegistry.put( key, image );
        }
       
        //get copy of map
        IEditorInput input = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
        .getActiveEditor().getEditorInput();
View Full Code Here


     * @return the image descriptor
     */
    public static ImageDescriptor getImageDescriptor(String path) {

        DroolsEclipsePlugin plugin = getDefault();
        ImageRegistry reg = plugin.getImageRegistry();
        ImageDescriptor des = reg.getDescriptor( path );
        if ( des == null ) {
            des = AbstractUIPlugin.imageDescriptorFromPlugin( "org.drools.eclipse",
                                                              path );
            reg.put( path,
                     des );
        }
        return des;
    }
View Full Code Here

  public static ImageDescriptor getImageDescriptor(String path) {
    return imageDescriptorFromPlugin(PLUGIN_ID, path);
  }

  public static Image getSharedImage(String path) {
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(path);
    if (image_descriptor == null) {
      image_descriptor = getImageDescriptor(path);
      registry.put(path, image_descriptor);
    }
    return registry.get(path);
  }
View Full Code Here

  public static ImageDescriptor getImageDescriptor(String path) {
    return imageDescriptorFromPlugin(PLUGIN_ID, path);
  }

  public static Image getSharedImage(String path) {
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(path);
    if (image_descriptor == null) {
      image_descriptor = getImageDescriptor(path);
      registry.put(path, image_descriptor);
    }
    return registry.get(path);
  }
View Full Code Here

    }
    return registry.get(path);
  }

  public static ImageDescriptor getSharedDescriptor(String path) {
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(path);
    if (image_descriptor == null) {
      image_descriptor = getImageDescriptor(path);
      registry.put(path, image_descriptor);
    }
    return image_descriptor;
  }
View Full Code Here

    return image_descriptor;
  }

  public static Image getSharedImage(String pluginId, String path) {
    String iconKey = pluginId + path;
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(iconKey);
    if (image_descriptor == null) {
      Bundle bundle = Platform.getBundle(pluginId);
      image_descriptor = ImageDescriptor.createFromURL(bundle.getResource(path));
      registry.put(iconKey, image_descriptor);
    }
    return registry.get(iconKey);
 
View Full Code Here

  public static ImageDescriptor getImageDescriptor(String path) {
    return imageDescriptorFromPlugin(PLUGIN_ID, path);
  }

  public static Image getSharedImage(String path) {
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(path);
    if (image_descriptor == null) {
      image_descriptor = getImageDescriptor(path);
      registry.put(path, image_descriptor);
    }
    return registry.get(path);
  }
View Full Code Here

    }
    return registry.get(path);
  }

  public static ImageDescriptor getSharedDescriptor(String path) {
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(path);
    if (image_descriptor == null) {
      image_descriptor = getImageDescriptor(path);
      registry.put(path, image_descriptor);
    }
    return image_descriptor;
  }
View Full Code Here

    return image_descriptor;
  }

  public static Image getSharedImage(String pluginId, String path) {
    String iconKey = pluginId + path;
    ImageRegistry registry = getDefault().getImageRegistry();
    ImageDescriptor image_descriptor = registry.getDescriptor(iconKey);
    if (image_descriptor == null) {
      Bundle bundle = Platform.getBundle(pluginId);
      image_descriptor = ImageDescriptor.createFromURL(bundle.getResource(path));
      registry.put(iconKey, image_descriptor);
    }
    return registry.get(iconKey);
  }
View Full Code Here

    return super.getImage(display);
  }

  private ImageRegistry getGrayMarkerImageRegistry(Display display) {
    if (fgGrayMarkersImageRegistry == null)
      fgGrayMarkersImageRegistry= new ImageRegistry(display);
    return fgGrayMarkersImageRegistry;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.resource.ImageRegistry

Copyright © 2018 www.massapicom. 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.