org.eclipse.emf.ecp.view.spi.util.swt
Interface ImageRegistryService

All Known Implementing Classes:
RCPImageRegistryService

public interface ImageRegistryService

The ImageRegistryService allows to retrieve Images based on a Bundle and a path within or an URL. The images are loaded only once.

Author:
Eugen Neufeld

Method Summary
 org.eclipse.swt.graphics.Image getImage(org.osgi.framework.Bundle bundle, String path)
          Retrieve an Image based on a Bundle and a path within.
 org.eclipse.swt.graphics.Image getImage(URL url)
          Retrieve an Image based on an URL.
 

Method Detail

getImage

org.eclipse.swt.graphics.Image getImage(org.osgi.framework.Bundle bundle,
                                        String path)
Retrieve an Image based on a Bundle and a path within.

Parameters:
bundle - the Bundle to get the image from
path - the path to the image within the bundle
Returns:
the loaded Image

getImage

org.eclipse.swt.graphics.Image getImage(URL url)
Retrieve an Image based on an URL.

Parameters:
url - the URL to load the image from
Returns:
the loaded Image


Copyright © 2015. All Rights Reserved.