ch.sahits.codegen.ui
Class CodegenUIPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by ch.sahits.codegen.ui.CodegenUIPlugin

public class CodegenUIPlugin
extends AbstractUIPlugin

This class provides the UI components of the CodegenPlugin

Since:
2.1.0
Author:
Andi Hotz, Sahits GmbH

Field Summary
static java.lang.String PLUGIN_ID_CODEGEN
          Plug-in id for codegen plug-in
static java.lang.String PLUGIN_ID_JAVA
          ID of this plugin for the java plugin
 
Constructor Summary
CodegenUIPlugin()
           
 
Method Summary
static IWorkbenchPage getActivePage()
          Retrieve the active workbench page
static IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
static CodegenUIPlugin getDefault()
          Returns the shared instance
static java.lang.String getGeneralCodegenHeaderImageURL()
          Retrieve the header image for the General codegen Wizards
static ImageDescriptor getImageDescriptorCodegen(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
static ImageDescriptor getImageDescriptorJava(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
static java.lang.String getJavaHeaderImageURL()
          Retrieve the header image for the Java related Wizards
static java.lang.String getMultipleCodeHeaderImageURL()
          Retrieve the header image for the multiple file creation 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_CODEGEN

public static final java.lang.String PLUGIN_ID_CODEGEN
Plug-in id for codegen plug-in

See Also:
Constant Field Values

PLUGIN_ID_JAVA

public static final java.lang.String PLUGIN_ID_JAVA
ID of this plugin for the java plugin

See Also:
Constant Field Values
Constructor Detail

CodegenUIPlugin

public CodegenUIPlugin()
Method Detail

getJavaHeaderImageURL

public static java.lang.String getJavaHeaderImageURL()
Retrieve the header image for the Java related Wizards

Returns:
relative URL

getGeneralCodegenHeaderImageURL

public static java.lang.String getGeneralCodegenHeaderImageURL()
Retrieve the header image for the General codegen Wizards

Returns:
relative URL

getImageDescriptorCodegen

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

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)

getMultipleCodeHeaderImageURL

public static java.lang.String getMultipleCodeHeaderImageURL()
Retrieve the header image for the multiple file creation wizard

Returns:
relative URL

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

getImageDescriptorJava

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

getDefault

public static CodegenUIPlugin getDefault()
Returns the shared instance

Returns:
the shared instance