ch.sahits.codegen.java
Class JavaCodegenPlugin

java.lang.Object
  extended by Plugin
      extended by ch.sahits.codegen.java.JavaCodegenPlugin

public final class JavaCodegenPlugin
extends Plugin

The plugin runtime class

Since:
0.9.1
Author:
Andi Hotz

Field Summary
static java.lang.String PLUGIN_ID
          ID of this plugin
 
Constructor Summary
JavaCodegenPlugin()
           
 
Method Summary
static JavaCodegenPlugin getDefault()
          Returns the shared instance
static JavaCodegenPlugin getPlugin()
          Retrieve the Plugin
static java.lang.String getPluginId()
          ID of this plugin
static void log(Diagnostic diagnostic)
          Log a diagnosed error
static void log(IStatus status)
          Log a status
static void log(java.lang.Throwable e)
          Log an exception
 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
ID of this plugin

See Also:
Constant Field Values
Constructor Detail

JavaCodegenPlugin

public JavaCodegenPlugin()
Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)

getDefault

public static JavaCodegenPlugin getDefault()
Returns the shared instance

Returns:
the shared instance

getPlugin

public static JavaCodegenPlugin getPlugin()
Retrieve the Plugin

Returns:
this

getPluginId

public static java.lang.String getPluginId()
ID of this plugin

Returns:
plugin-ID

log

public static void log(java.lang.Throwable e)
Log an exception

Parameters:
e - Throwable

log

public static void log(Diagnostic diagnostic)
Log a diagnosed error

Parameters:
diagnostic -

log

public static void log(IStatus status)
Log a status

Parameters:
status -