com.raghuraman.eclipse.tools
Class ToolsPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.raghuraman.eclipse.tools.ToolsPlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
- public abstract class ToolsPlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
The main plugin class to be used in the desktop.
- Author:
- R.Raghuraman
Nested classes inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
|
Fields inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Method Summary |
static boolean |
choiceMessage(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
|
protected org.eclipse.core.runtime.Status |
createStatus(int severity,
java.lang.String msg)
Method createStatus is helper method that creates a Status object. |
static com.raghuraman.codegen.IClassesInPackage |
getClassesInPackageProcessor()
|
static ToolsPlugin |
getFirstPlugin()
|
org.eclipse.core.runtime.MultiStatus |
getServiceInfo(java.lang.Throwable exception,
int severity)
|
void |
handleException(java.lang.Exception e,
java.lang.String msg,
int mode,
java.lang.Class source,
org.eclipse.swt.widgets.Shell shell)
|
void |
handleException(java.lang.Exception e,
java.lang.String msg,
int mode,
java.lang.Object source,
org.eclipse.swt.widgets.Shell shell)
|
void |
handleException(java.lang.Exception originalException,
java.lang.String msg,
int mode,
java.lang.String className,
org.eclipse.swt.widgets.Shell shell)
|
void |
log(int severity,
java.lang.String msg)
|
void |
logExceptionStackTrace(java.lang.Throwable e)
|
void |
logInfo(java.lang.String msg)
|
static void |
message(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
|
static void |
problem(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
|
static void |
problem(org.eclipse.swt.widgets.Shell shell,
com.raghuraman.xml.XMLException e1)
|
static void |
setClassesInPackageProcessor(com.raghuraman.codegen.IClassesInPackage classesInPackageProcessor)
|
protected static void |
setFirstPlugin(ToolsPlugin plugin)
|
private void |
showCause(java.lang.Throwable e)
|
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
firstPlugin
private static ToolsPlugin firstPlugin
classesInPackageProcessor
private static com.raghuraman.codegen.IClassesInPackage classesInPackageProcessor
ONLYDIALOG
public static final int ONLYDIALOG
- See Also:
- Constant Field Values
ONLYLOG
public static final int ONLYLOG
- See Also:
- Constant Field Values
DIALOG_N_LOG
public static final int DIALOG_N_LOG
- See Also:
- Constant Field Values
ToolsPlugin
public ToolsPlugin()
getFirstPlugin
public static ToolsPlugin getFirstPlugin()
setFirstPlugin
protected static void setFirstPlugin(ToolsPlugin plugin)
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- This method is called upon plug-in activation
- Throws:
java.lang.Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- This method is called when the plug-in is stopped
- Throws:
java.lang.Exception
getServiceInfo
public org.eclipse.core.runtime.MultiStatus getServiceInfo(java.lang.Throwable exception,
int severity)
createStatus
protected org.eclipse.core.runtime.Status createStatus(int severity,
java.lang.String msg)
- Method createStatus is helper method that creates a Status object.
- Parameters:
severity
- msg
-
- Returns:
- a status object
handleException
public void handleException(java.lang.Exception e,
java.lang.String msg,
int mode,
java.lang.Object source,
org.eclipse.swt.widgets.Shell shell)
handleException
public void handleException(java.lang.Exception e,
java.lang.String msg,
int mode,
java.lang.Class source,
org.eclipse.swt.widgets.Shell shell)
handleException
public void handleException(java.lang.Exception originalException,
java.lang.String msg,
int mode,
java.lang.String className,
org.eclipse.swt.widgets.Shell shell)
showCause
private void showCause(java.lang.Throwable e)
log
public void log(int severity,
java.lang.String msg)
logExceptionStackTrace
public void logExceptionStackTrace(java.lang.Throwable e)
logInfo
public void logInfo(java.lang.String msg)
choiceMessage
public static boolean choiceMessage(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
message
public static void message(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
problem
public static void problem(org.eclipse.swt.widgets.Shell shell,
java.lang.String msg)
problem
public static void problem(org.eclipse.swt.widgets.Shell shell,
com.raghuraman.xml.XMLException e1)
getClassesInPackageProcessor
public static com.raghuraman.codegen.IClassesInPackage getClassesInPackageProcessor()
setClassesInPackageProcessor
public static void setClassesInPackageProcessor(com.raghuraman.codegen.IClassesInPackage classesInPackageProcessor)
Copyright © 2004 R.Raghuraman. Distributable under LGPL license.