|
|||||||||||
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.ui.plugin.AbstractUIPlugin
org.eclipse.contribution.visualiser.VisualiserPlugin
The main plugin class for the Visualiser plugin.
Field Summary | |
static int |
LOGLEVEL
|
static Menu |
menu
|
static java.lang.String |
PLUGIN_ID
|
static Visualiser |
visualiser
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
VisualiserPlugin()
3.0 compatible Plugin constructor - load the resource bundle |
Method Summary | |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Gets the active workbench window |
static VisualiserPlugin |
getDefault()
Returns the shared instance as VisualiserPlugin is a singleton. |
static ProviderManager |
getProviderManager()
Getter method for the provider manager |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static 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.resources.IWorkspace |
getWorkspace()
Returns the workspace instance. |
static void |
log(int logLevel,
java.lang.String message)
Log the given message at the given log level. |
static void |
logException(java.lang.Throwable e)
Write the given exception or error to the log file (without displaying a dialog) |
static void |
refresh()
Refresh the Visualiser views. |
void |
removeMenu()
Remove the Visualiser Menu view |
void |
removeVisualiser()
Remove the Visualiser view |
void |
setMenu(Menu menu)
Set the Visualiser Menu view |
void |
setVisualiser(Visualiser visualiser)
Set the Visualiser view |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation - process any defined extensions and add the resource change listener. |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
static void |
trace(java.lang.String string)
Simple trace routine - we can turn trace on and off by commenting out the body. |
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 |
Field Detail |
public static final java.lang.String PLUGIN_ID
public static int LOGLEVEL
public static Visualiser visualiser
public static Menu menu
Constructor Detail |
public VisualiserPlugin()
Method Detail |
public static ProviderManager getProviderManager()
public static void refresh()
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static VisualiserPlugin getDefault()
public static org.eclipse.core.resources.IWorkspace getWorkspace()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
public static void trace(java.lang.String string)
public void setVisualiser(Visualiser visualiser)
public void removeVisualiser()
public void setMenu(Menu menu)
public void removeMenu()
public static void log(int logLevel, java.lang.String message)
logLevel
- message
- public static void logException(java.lang.Throwable e)
e
- public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |