Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor
Class AppDiagramActivator

java.lang.Object
  extended by SystemBasePlugin
      extended by com.ibm.etools.systems.application.visual.editor.AppDiagramActivator

public class AppDiagramActivator
extends SystemBasePlugin

The main plugin of Application diagram editor.


Field Summary
static String copyright
           
static PreferencesHint DIAGRAM_PREFERENCES_HINT
           
static String PLUGIN_ID
           
 
Constructor Summary
AppDiagramActivator()
          The constructor.
 
Method Summary
protected  ColorRegistry createColorRegistry()
           
 ColorRegistry getColorRegistry()
           
static AppDiagramActivator getDefault()
          Returns the shared instance.
static Shell getDefaultShell()
          Return default shell.
static RGB getInverseRGB(RGB rgb)
           
static RGB getRBG(int symbol, float percentage)
           
static RGB getRBG(RGB rgb, float percentage)
           
protected  void initializeColorRegistry(ColorRegistry reg)
           
protected  void initializeImageRegistry()
          Initialize the image registry by declaring all of the required graphics.
protected  void initializeImageRegistry(ImageRegistry reg)
           
protected  void initializePreferenceStore()
          Initialize the preference store.
static boolean isErrorLoggingON()
          Return true is error logging turned on, false otherwise.
static boolean isTracingON()
          Return true is tracing turned on, false otherwise.
static void log(IStatus status)
           
static void logErrorMessage(String message)
           
static void logErrorStatus(String message, IStatus status)
           
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

PLUGIN_ID

public static final String PLUGIN_ID
See Also:
Constant Field Values

DIAGRAM_PREFERENCES_HINT

public static final PreferencesHint DIAGRAM_PREFERENCES_HINT
Constructor Detail

AppDiagramActivator

public AppDiagramActivator()
The constructor.

Method Detail

start

public void start(BundleContext context)
           throws Exception
This method is called upon plug-in activation

Throws:
Exception

stop

public void stop(BundleContext context)
          throws Exception
This method is called when the plug-in is stopped

Throws:
Exception

getDefault

public static AppDiagramActivator getDefault()
Returns the shared instance.

Returns:
the shared instance.

getColorRegistry

public ColorRegistry getColorRegistry()

createColorRegistry

protected ColorRegistry createColorRegistry()

initializeColorRegistry

protected void initializeColorRegistry(ColorRegistry reg)

initializeImageRegistry

protected void initializeImageRegistry(ImageRegistry reg)

getRBG

public static RGB getRBG(RGB rgb,
                         float percentage)

getRBG

public static RGB getRBG(int symbol,
                         float percentage)

getInverseRGB

public static RGB getInverseRGB(RGB rgb)

log

public static void log(IStatus status)

logErrorMessage

public static void logErrorMessage(String message)

logErrorStatus

public static void logErrorStatus(String message,
                                  IStatus status)

getDefaultShell

public static Shell getDefaultShell()
Return default shell.

Returns:

initializePreferenceStore

protected void initializePreferenceStore()
Initialize the preference store.


initializeImageRegistry

protected void initializeImageRegistry()
Initialize the image registry by declaring all of the required graphics. Typically this is a series of calls to putImageInRegistry. Use getIconPath() to qualify the file name of the icon with its relative path.


isErrorLoggingON

public static boolean isErrorLoggingON()
Return true is error logging turned on, false otherwise.


isTracingON

public static boolean isTracingON()
Return true is tracing turned on, false otherwise.


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.