|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.net4j.util.eclipse.AbstractPlugin
public abstract class AbstractPlugin
The main plugin class to be used in the desktop.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
protected |
AbstractPlugin()
The constructor. |
| Method Summary | |
|---|---|
static void |
cancelOperation()
|
static void |
checkCanceled(org.eclipse.core.runtime.IProgressMonitor monitor)
Progress monitor helpers |
void |
debug(java.lang.String message)
|
protected void |
doStart()
|
protected void |
doStop()
|
void |
error(java.lang.String message)
|
void |
error(java.lang.String message,
java.lang.Throwable t)
|
void |
error(java.lang.Throwable t)
|
org.osgi.framework.BundleContext |
getBundleContext()
|
java.lang.String |
getBundleLocation()
|
static java.lang.String |
getBundleLocation(org.osgi.framework.Bundle bundle)
|
java.lang.ClassLoader |
getClassLoader()
|
org.apache.log4j.Logger |
getLogger()
|
java.lang.String |
getPluginId()
|
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
static org.eclipse.core.runtime.IProgressMonitor |
monitorFor(org.eclipse.core.runtime.IProgressMonitor monitor)
|
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 upon plug-in deactivation |
static org.eclipse.core.runtime.IProgressMonitor |
subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks)
|
static org.eclipse.core.runtime.IProgressMonitor |
subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks,
int style)
|
void |
warn(java.lang.String message)
|
void |
warn(java.lang.String message,
java.lang.Throwable t)
|
void |
warn(java.lang.Throwable t)
|
| Methods inherited from class org.eclipse.core.runtime.Plugin |
|---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractPlugin()
| Method Detail |
|---|
public java.lang.String getPluginId()
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface ClassLoaderFactorypublic org.apache.log4j.Logger getLogger()
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.core.runtime.Pluginjava.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.Pluginjava.lang.Exception
protected void doStart()
throws java.lang.Exception
java.lang.Exception
protected void doStop()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
public org.osgi.framework.BundleContext getBundleContext()
public java.lang.String getBundleLocation()
throws java.io.IOException
java.io.IOExceptionpublic static void checkCanceled(org.eclipse.core.runtime.IProgressMonitor monitor)
public static void cancelOperation()
public static org.eclipse.core.runtime.IProgressMonitor monitorFor(org.eclipse.core.runtime.IProgressMonitor monitor)
public static org.eclipse.core.runtime.IProgressMonitor subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks)
public static org.eclipse.core.runtime.IProgressMonitor subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks,
int style)
public static java.lang.String getBundleLocation(org.osgi.framework.Bundle bundle)
throws java.io.IOException
java.io.IOExceptionpublic void debug(java.lang.String message)
public void warn(java.lang.String message)
public void error(java.lang.String message)
public void warn(java.lang.Throwable t)
public void error(java.lang.Throwable t)
public void warn(java.lang.String message,
java.lang.Throwable t)
public void error(java.lang.String message,
java.lang.Throwable t)
|
Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||