org.drools.eclipse
Class DroolsPluginImages

java.lang.Object
  extended by org.drools.eclipse.DroolsPluginImages

public class DroolsPluginImages
extends Object

Handles the images used in this plugin.


Field Summary
static String CANCEL_ACTIVATION
           
static String CLASS
           
static String CREATE_ACTIVATION
           
static String DEFAULTRULEGROUP
           
static String DELETE_LOG
           
static String DELETE_LOG_DISABLED
           
static String DROOLS
           
static String DSL
           
static String DSL_EXPRESSION
           
static String EXECUTE_ACTIVATION
           
static String GLOBAL
           
static String GROUPS
           
static String IMG_LOGICAL
           
static String IMG_LOGICAL_DISABLED
           
static String IMPORT
           
static String INSERT
           
static String METHOD
           
static String OPEN_LOG
           
static String PACKAGE
           
static String QUERY
           
static String REFRESH_LOG
           
static String REFRESH_LOG_DISABLED
           
static String RETRACT
           
static String RULE
           
static String RULEFLOW
           
static String RULEFLOW_GROUP
           
static String RULEFLOW_NODE_TRIGGERED
           
static String RULEGROUP
           
static String UPDATE
           
static String VARIABLE
           
 
Constructor Summary
DroolsPluginImages()
           
 
Method Summary
static void declareRegistryImage(String key, String path)
          Declare an Image in the registry table.
static org.eclipse.swt.graphics.Image getImage(String key)
          Returns the Image identified by the given key, or null if it does not exist.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String key)
          Returns the ImageDescriptor identified by the given key, or null if it does not exist.
static org.eclipse.jface.resource.ImageRegistry getImageRegistry()
          Returns the ImageRegistry.
static org.eclipse.jface.resource.ImageRegistry initializeImageRegistry()
           
static void putImage(String key, org.eclipse.swt.graphics.Image image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMG_LOGICAL

public static final String IMG_LOGICAL
See Also:
Constant Field Values

IMG_LOGICAL_DISABLED

public static final String IMG_LOGICAL_DISABLED
See Also:
Constant Field Values

REFRESH_LOG

public static final String REFRESH_LOG
See Also:
Constant Field Values

REFRESH_LOG_DISABLED

public static final String REFRESH_LOG_DISABLED
See Also:
Constant Field Values

OPEN_LOG

public static final String OPEN_LOG
See Also:
Constant Field Values

DELETE_LOG

public static final String DELETE_LOG
See Also:
Constant Field Values

DELETE_LOG_DISABLED

public static final String DELETE_LOG_DISABLED
See Also:
Constant Field Values

INSERT

public static final String INSERT
See Also:
Constant Field Values

UPDATE

public static final String UPDATE
See Also:
Constant Field Values

RETRACT

public static final String RETRACT
See Also:
Constant Field Values

CREATE_ACTIVATION

public static final String CREATE_ACTIVATION
See Also:
Constant Field Values

CANCEL_ACTIVATION

public static final String CANCEL_ACTIVATION
See Also:
Constant Field Values

EXECUTE_ACTIVATION

public static final String EXECUTE_ACTIVATION
See Also:
Constant Field Values

CLASS

public static final String CLASS
See Also:
Constant Field Values

PACKAGE

public static final String PACKAGE
See Also:
Constant Field Values

METHOD

public static final String METHOD
See Also:
Constant Field Values

VARIABLE

public static final String VARIABLE
See Also:
Constant Field Values

DROOLS

public static final String DROOLS
See Also:
Constant Field Values

RULE

public static final String RULE
See Also:
Constant Field Values

QUERY

public static final String QUERY
See Also:
Constant Field Values

DSL_EXPRESSION

public static final String DSL_EXPRESSION
See Also:
Constant Field Values

IMPORT

public static final String IMPORT
See Also:
Constant Field Values

DSL

public static final String DSL
See Also:
Constant Field Values

GLOBAL

public static final String GLOBAL
See Also:
Constant Field Values

RULEFLOW

public static final String RULEFLOW
See Also:
Constant Field Values

RULEFLOW_GROUP

public static final String RULEFLOW_GROUP
See Also:
Constant Field Values

RULEFLOW_NODE_TRIGGERED

public static final String RULEFLOW_NODE_TRIGGERED
See Also:
Constant Field Values

RULEGROUP

public static final String RULEGROUP
See Also:
Constant Field Values

DEFAULTRULEGROUP

public static final String DEFAULTRULEGROUP
See Also:
Constant Field Values

GROUPS

public static final String GROUPS
See Also:
Constant Field Values
Constructor Detail

DroolsPluginImages

public DroolsPluginImages()
Method Detail

declareRegistryImage

public static final void declareRegistryImage(String key,
                                              String path)
Declare an Image in the registry table.

Parameters:
key - The key to use when registering the image
path - The path where the image can be found. This path is relative to where this plugin class is found (i.e. typically the packages directory)

getImageRegistry

public static org.eclipse.jface.resource.ImageRegistry getImageRegistry()
Returns the ImageRegistry.


initializeImageRegistry

public static org.eclipse.jface.resource.ImageRegistry initializeImageRegistry()

getImage

public static org.eclipse.swt.graphics.Image getImage(String key)
Returns the Image identified by the given key, or null if it does not exist.


putImage

public static void putImage(String key,
                            org.eclipse.swt.graphics.Image image)

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String key)
Returns the ImageDescriptor identified by the given key, or null if it does not exist.



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.