Management of resources, such as images, fonts, messages etc. More...
Public Types | |
enum | Actions { APPLICATION_EXIT, DIALOG_CANCEL, DIALOG_OK, DOCUMENT_NEW, DOCUMENT_OPEN, DOCUMENT_SAVE, DOCUMENT_SAVE_AS, EXECUTE_TRANSACTION, EXECUTE_TRANSACTION_64, GO_NEXT, GO_PREVIOUS, HELP_ABOUT, HELP_CONTENTS, HELP_CONTEXTUAL, HELP_SEARCH, LIST_ADD, LIST_REMOVE, SHOW_OPERATIONS } |
enum | Apps { SYSTEM_SOFTWARE_UPDATE } |
enum | Groups { CHECKER, CHECKER_64, OTHER, OTHER_64, READER, READER_64, TRANSFORMER, TRANSFORMER_64, WRITER, WRITER_64 } |
enum | Mimetypes { UNKNOWN } |
enum | Places { FOLDER } |
enum | Status { DIALOG_ERROR_64, DIALOG_INFORMATION_64, DIALOG_WARNING_64, ERROR } |
Static Public Member Functions | |
static Image | get (String theKey) |
Returns the image associated with the given key in this registry, or null if none. | |
static ImageDescriptor | getDescriptor (String theKey) |
Returns the descriptor associated with the given key in this registry, or null if none. | |
static String | getText (String theKey) |
Returns the requested text. | |
Static Public Attributes | |
static Color | BLACK = new Color(Display.getCurrent(),0, 0, 0) |
static Font | boldfont |
static Font | bolditalicfont |
static Color | DARK_BLUE = new Color(null, 1, 70, 122) |
static Color | DARK_GREEN = new Color(Display.getCurrent(),0,100,50) |
static Color | DARK_GREY = new Color(Display.getCurrent(),120,120,120) |
static Color | DARK_RED = new Color(Display.getCurrent(), 139, 0, 0) |
static Color | DARK_YELLOW = new Color(Display.getCurrent(),200,200,0) |
static Color | DEFAULT_NODE_COLOR = LIGHT_BLUE |
static Font | defaultfont = JFaceResources.getDefaultFont() |
the standard font from eclipse for the views | |
static Color | GREEN = new Color(Display.getCurrent(),0,255,0) |
static Color | GREY = new Color(Display.getCurrent(),192,192,192) |
static Color | GREY_BLUE = new Color(null, 139, 150, 171) |
static Color | HIGHLIGHT_ADJACENT_COLOR = ColorConstants.orange |
static Color | HIGHLIGHT_COLOR = ColorConstants.yellow |
static Font | italicfont |
the font for included elements | |
static Color | LIGHT_BLUE = new Color(null, 216, 228, 248) |
static Color | LIGHT_BLUE_CYAN = new Color(null, 213, 243, 255) |
static Color | LIGHT_YELLOW = new Color(null, 255, 255, 206) |
static final String | PATHSEPARATOR = "/" |
path separator of images | |
static Color | RED = new Color(Display.getCurrent(),234,0,0) |
static Color | WHITE = new Color(Display.getCurrent(),255,255,255) |
Static Private Member Functions | |
static ResourceBundle | getResourceBundle () |
Returns the resource bundle (singleton). | |
static void | insertDescriptor (String theKey) |
Insert one descriptor into the registry. | |
Static Private Attributes | |
static final String | BUNDLE_NAME = "plugin" |
message resources | |
static final String | IMAGEEXTENSION = "png" |
extension of images | |
static final String | IMAGEPATH = "icons" |
path of images | |
static ResourceBundle | theResourceBundle = null |
resource bundle (singleton) |
Management of resources, such as images, fonts, messages etc.
static Image de.fraunhofer.isst.axbench.ResourceManager.get | ( | String | theKey | ) | [static] |
Returns the image associated with the given key in this registry, or null
if none.
This method wraps the same method of ImageRegistry but creates the image if not created yet.
theKey | the key |
null | if none |
static ImageDescriptor de.fraunhofer.isst.axbench.ResourceManager.getDescriptor | ( | String | theKey | ) | [static] |
Returns the descriptor associated with the given key in this registry, or null
if none.
This method wraps the same method of ImageRegistry but fills the registry first, if not filled.
theKey | the key |
null | if none |
static ResourceBundle de.fraunhofer.isst.axbench.ResourceManager.getResourceBundle | ( | ) | [static, private] |
Returns the resource bundle (singleton).
Creates the bundle, if not created yet.
static String de.fraunhofer.isst.axbench.ResourceManager.getText | ( | String | theKey | ) | [static] |
Returns the requested text.
theKey | key of the text |
static void de.fraunhofer.isst.axbench.ResourceManager.insertDescriptor | ( | String | theKey | ) | [static, private] |
Insert one descriptor into the registry.
This method is rather complicated, because normally a "wrong" descriptor returns the default image, not null
.
theKey | key of the image |
Color de.fraunhofer.isst.axbench.ResourceManager.BLACK = new Color(Display.getCurrent(),0, 0, 0) [static] |
Font de.fraunhofer.isst.axbench.ResourceManager.boldfont [static] |
new Font (Display.getCurrent(),
JFaceResources.getDefaultFont().getFontData()[0].getName(),
JFaceResources.getDefaultFont().getFontData()[0].getHeight(),
SWT.BOLD)
new Font (Display.getCurrent(),
JFaceResources.getDefaultFont().getFontData()[0].getName(),
JFaceResources.getDefaultFont().getFontData()[0].getHeight(),
SWT.BOLD | SWT.ITALIC)
final String de.fraunhofer.isst.axbench.ResourceManager.BUNDLE_NAME = "plugin" [static, private] |
message resources
Color de.fraunhofer.isst.axbench.ResourceManager.DARK_BLUE = new Color(null, 1, 70, 122) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.DARK_GREEN = new Color(Display.getCurrent(),0,100,50) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.DARK_GREY = new Color(Display.getCurrent(),120,120,120) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.DARK_RED = new Color(Display.getCurrent(), 139, 0, 0) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.DARK_YELLOW = new Color(Display.getCurrent(),200,200,0) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.DEFAULT_NODE_COLOR = LIGHT_BLUE [static] |
Font de.fraunhofer.isst.axbench.ResourceManager.defaultfont = JFaceResources.getDefaultFont() [static] |
the standard font from eclipse for the views
Color de.fraunhofer.isst.axbench.ResourceManager.GREEN = new Color(Display.getCurrent(),0,255,0) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.GREY = new Color(Display.getCurrent(),192,192,192) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.GREY_BLUE = new Color(null, 139, 150, 171) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.HIGHLIGHT_ADJACENT_COLOR = ColorConstants.orange [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.HIGHLIGHT_COLOR = ColorConstants.yellow [static] |
final String de.fraunhofer.isst.axbench.ResourceManager.IMAGEEXTENSION = "png" [static, private] |
extension of images
final String de.fraunhofer.isst.axbench.ResourceManager.IMAGEPATH = "icons" [static, private] |
path of images
Font de.fraunhofer.isst.axbench.ResourceManager.italicfont [static] |
new Font (Display.getCurrent(),
JFaceResources.getDefaultFont().getFontData()[0].getName(),
JFaceResources.getDefaultFont().getFontData()[0].getHeight(),
SWT.ITALIC)
the font for included elements
Color de.fraunhofer.isst.axbench.ResourceManager.LIGHT_BLUE = new Color(null, 216, 228, 248) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.LIGHT_BLUE_CYAN = new Color(null, 213, 243, 255) [static] |
Color de.fraunhofer.isst.axbench.ResourceManager.LIGHT_YELLOW = new Color(null, 255, 255, 206) [static] |
final String de.fraunhofer.isst.axbench.ResourceManager.PATHSEPARATOR = "/" [static] |
path separator of images
Color de.fraunhofer.isst.axbench.ResourceManager.RED = new Color(Display.getCurrent(),234,0,0) [static] |
ResourceBundle de.fraunhofer.isst.axbench.ResourceManager.theResourceBundle = null [static, private] |
resource bundle (singleton)
Color de.fraunhofer.isst.axbench.ResourceManager.WHITE = new Color(Display.getCurrent(),255,255,255) [static] |