com.unitesk.requality.eclipse
Class Activator

java.lang.Object
  extended by AbstractUIPlugin
      extended by com.unitesk.requality.eclipse.Activator

public class Activator
extends AbstractUIPlugin

The activator class controls the plug-in life cycle


Field Summary
static java.lang.String EXTENSION_NAME_DOC_PROCESSOR
           
static java.lang.String EXTENSION_NAME_NODE_TYPES
           
static java.lang.String EXTENSION_NAME_REPORT
           
static java.lang.String PLUGIN_ID
           
static TreesTracker tracker
           
 
Constructor Summary
Activator()
          The constructor
 
Method Summary
 boolean addChangeListener(IUIStateChangeListener listener)
           
protected  ImageRegistry createImageRegistry()
           
 TreeNode getActiveNode(java.lang.String string)
           
static Activator getDefault()
          Returns the shared instance
static ImageDescriptor getImageDescriptor(java.lang.String path)
           
static ImageDescriptor getImageDescriptor(java.lang.String pluginId, java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
 java.lang.String getJSToolsPath()
           
static java.lang.String getPath(java.lang.String string)
           
 java.util.SortedSet<DocumentProcessorDescriptor> getProcessors()
           
 java.util.Map<java.lang.String,Template> getReportTemplates()
           
 void loadDocumentProcessorDescriptors()
           
 boolean removeChangeListener(IUIStateChangeListener listener)
           
 void setActiveNode(TreeNode node, java.lang.String type)
           
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values

tracker

public static TreesTracker tracker

EXTENSION_NAME_DOC_PROCESSOR

public static final java.lang.String EXTENSION_NAME_DOC_PROCESSOR
See Also:
Constant Field Values

EXTENSION_NAME_REPORT

public static final java.lang.String EXTENSION_NAME_REPORT
See Also:
Constant Field Values

EXTENSION_NAME_NODE_TYPES

public static final java.lang.String EXTENSION_NAME_NODE_TYPES
See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
The constructor

Method Detail

getProcessors

public java.util.SortedSet<DocumentProcessorDescriptor> getProcessors()

getReportTemplates

public java.util.Map<java.lang.String,Template> getReportTemplates()

loadDocumentProcessorDescriptors

public void loadDocumentProcessorDescriptors()

start

public void start(BundleContext context)
           throws java.lang.Exception
Throws:
java.lang.Exception

getJSToolsPath

public java.lang.String getJSToolsPath()

stop

public void stop(BundleContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception

getDefault

public static Activator getDefault()
Returns the shared instance

Returns:
the shared instance

createImageRegistry

protected ImageRegistry createImageRegistry()

getPath

public static java.lang.String getPath(java.lang.String string)
                                throws java.io.IOException
Throws:
java.io.IOException

getImageDescriptor

public static ImageDescriptor getImageDescriptor(java.lang.String pluginId,
                                                 java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path

Parameters:
path - the path
Returns:
the image descriptor

getImageDescriptor

public static ImageDescriptor getImageDescriptor(java.lang.String path)

addChangeListener

public boolean addChangeListener(IUIStateChangeListener listener)

removeChangeListener

public boolean removeChangeListener(IUIStateChangeListener listener)

setActiveNode

public void setActiveNode(TreeNode node,
                          java.lang.String type)

getActiveNode

public TreeNode getActiveNode(java.lang.String string)