Class RAPImageRegistryService
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.util.swt.rap.RAPImageRegistryService
-
- All Implemented Interfaces:
java.io.Serializable,ImageRegistryService,org.eclipse.rap.rwt.service.UISessionListener,org.eclipse.swt.internal.SerializableCompatibility
public class RAPImageRegistryService extends java.lang.Object implements ImageRegistryService, org.eclipse.rap.rwt.service.UISessionListener
The RAP instance of the ImageRegistryService.- Author:
- Eugen Neufeld
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RAPImageRegistryService()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event)org.eclipse.swt.graphics.ImagegetImage(java.net.URL url)Retrieve anImagebased on anURL.org.eclipse.swt.graphics.ImagegetImage(org.osgi.framework.Bundle bundle, java.lang.String path)Retrieve anImagebased on a Bundle and a path within.
-
-
-
Method Detail
-
beforeDestroy
public void beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event)
- Specified by:
beforeDestroyin interfaceorg.eclipse.rap.rwt.service.UISessionListener
-
getImage
public org.eclipse.swt.graphics.Image getImage(org.osgi.framework.Bundle bundle, java.lang.String path)Description copied from interface:ImageRegistryServiceRetrieve anImagebased on a Bundle and a path within.- Specified by:
getImagein interfaceImageRegistryService- Parameters:
bundle- the Bundle to get the image frompath- the path to the image within the bundle- Returns:
- the loaded
Image
-
getImage
public org.eclipse.swt.graphics.Image getImage(java.net.URL url)
Description copied from interface:ImageRegistryServiceRetrieve anImagebased on anURL.- Specified by:
getImagein interfaceImageRegistryService- Parameters:
url- theURLto load the image from- Returns:
- the loaded
Image
-
-