ch.sahits.codegen.sql
Class SQLCodegenPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by ch.sahits.codegen.sql.SQLCodegenPlugin

public final class SQLCodegenPlugin
extends AbstractUIPlugin

Class represents this plugin

Author:
Andi Hotz

Field Summary
static java.lang.String PLUGIN_ID
          ID of this plugin
 
Constructor Summary
SQLCodegenPlugin()
          The constructor
 
Method Summary
static IWorkbenchPage getActivePage()
          Retrieve the active workbench page
static IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
static SQLCodegenPlugin getDefault()
          Returns the shared instance
static ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
static SQLCodegenPlugin getPlugin()
          Retrieve the Plugin
static java.lang.String getPluginId()
          ID of this plugin
static java.lang.String getSQLCreaterHeaderURL()
          Retrieve the URL to the Header image of the wizard
 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

SQLCodegenPlugin

public SQLCodegenPlugin()
The constructor

Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)

getDefault

public static SQLCodegenPlugin getDefault()
Returns the shared instance

Returns:
the shared instance

getImageDescriptor

public static ImageDescriptor getImageDescriptor(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

getPlugin

public static SQLCodegenPlugin getPlugin()
Retrieve the Plugin

Returns:
this

getPluginId

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

Returns:
plugin-ID

getActivePage

public static IWorkbenchPage getActivePage()
Retrieve the active workbench page

Returns:
IWorkbenchPage

getActiveWorkbenchWindow

public static IWorkbenchWindow getActiveWorkbenchWindow()
Returns the active workbench window

Returns:
the active workbench window

getSQLCreaterHeaderURL

public static java.lang.String getSQLCreaterHeaderURL()
Retrieve the URL to the Header image of the wizard

Returns:
relative URL