org.eclipse.corona.container.project.ui
Class ImageCache
java.lang.Object
org.eclipse.corona.ui.tools.ImageCache
org.eclipse.corona.container.project.ui.ImageCache
public class ImageCache
- extends ImageCache
Stores images to save system resources.
- Author:
- cwpl-pkaczmar, cwpl-pjaworow
Constructor Summary |
protected |
ImageCache(org.osgi.framework.Bundle bundle)
|
Method Summary |
org.eclipse.swt.graphics.Image |
getImageForRepository(RepositoryDescriptor repository)
Returns image that is adequate for a given repository depending on its
content-type and state of the repository. |
void |
init()
Reads extensions of extension point for images representing repositories. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BROWSER_BACK
public static final java.lang.String BROWSER_BACK
- See Also:
- Constant Field Values
BROWSER_FORWARD
public static final java.lang.String BROWSER_FORWARD
- See Also:
- Constant Field Values
BROWSER_REFRESH
public static final java.lang.String BROWSER_REFRESH
- See Also:
- Constant Field Values
BROWSER_STOP
public static final java.lang.String BROWSER_STOP
- See Also:
- Constant Field Values
BROWSER_GO
public static final java.lang.String BROWSER_GO
- See Also:
- Constant Field Values
TEAM_REFRESH
public static final java.lang.String TEAM_REFRESH
- See Also:
- Constant Field Values
TEAM_MEMBER_ACTIVE
public static final java.lang.String TEAM_MEMBER_ACTIVE
- See Also:
- Constant Field Values
TEAM_MEMBER_INACTIVE
public static final java.lang.String TEAM_MEMBER_INACTIVE
- See Also:
- Constant Field Values
ECLIPSE_PROJECT_ICON
public static final java.lang.String ECLIPSE_PROJECT_ICON
- See Also:
- Constant Field Values
CORONA_SERVER_ICON
public static final java.lang.String CORONA_SERVER_ICON
- See Also:
- Constant Field Values
CORONA_PROJECT_ICON
public static final java.lang.String CORONA_PROJECT_ICON
- See Also:
- Constant Field Values
CORONA_PROJECT_ICON_GRAY
public static final java.lang.String CORONA_PROJECT_ICON_GRAY
- See Also:
- Constant Field Values
CORONA_PROJECT_ICON_UNAVAILABLE
public static final java.lang.String CORONA_PROJECT_ICON_UNAVAILABLE
- See Also:
- Constant Field Values
GENERAL_RESOURCE_ICON
public static final java.lang.String GENERAL_RESOURCE_ICON
- See Also:
- Constant Field Values
IMAGE_REFRESH
public static final java.lang.String IMAGE_REFRESH
- See Also:
- Constant Field Values
PCX_REPOSITORY_DISPLAY_EXTENSIONPOINT
public static final java.lang.String PCX_REPOSITORY_DISPLAY_EXTENSIONPOINT
- See Also:
- Constant Field Values
ELEMENT_ICON
public static final java.lang.String ELEMENT_ICON
- See Also:
- Constant Field Values
ATT_ICON_NAME
public static final java.lang.String ATT_ICON_NAME
- See Also:
- Constant Field Values
ATT_CONTENT_TYPE
public static final java.lang.String ATT_CONTENT_TYPE
- See Also:
- Constant Field Values
ATT_STATUS
public static final java.lang.String ATT_STATUS
- See Also:
- Constant Field Values
ImageCache
protected ImageCache(org.osgi.framework.Bundle bundle)
init
public void init()
- Reads extensions of extension point for images representing repositories.
Each repository type can be represented by a different image. The image
cache is filled with images from defined extensions. The method is
invoked once only.
getImageForRepository
public org.eclipse.swt.graphics.Image getImageForRepository(RepositoryDescriptor repository)
- Returns image that is adequate for a given repository depending on its
content-type and state of the repository.
- Parameters:
repository
- for which Image should be retrieved/created.
- Returns:
- cached/created image.