|
||||||||||
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
de.tu_berlin.cs.tfs.muvitorkit.ui.MuvitorActivator
public class MuvitorActivator
The activator class controls the plug-in's life cycle. It allows the editor
to access this plug-in's properties (defined in the plugin.xml), e.g. the
perspective and editor file extension. Also, the editor can store preference
values or use the plugin's image registry to cache images. For this, a
utility class, like IconUtilTemplate
demonstrates, can be built to
conveniently manage images located in this plugin's "icons" folder.
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 | |
---|---|
MuvitorActivator()
The constructor |
Method Summary | |
---|---|
static MuvitorActivator |
getDefault()
Returns the shared instance |
static ImageDescriptor |
getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plugin-relative path. |
static String |
getUniqueExtensionAttributeValue(String exPointID,
String attribID)
Convenience method to access the extension defined in plugin.xml. |
static void |
logError(String message,
Exception e)
Convenience method for logging an error with this plugin |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
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 |
Constructor Detail |
---|
public MuvitorActivator()
Method Detail |
---|
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
public static MuvitorActivator getDefault()
public static ImageDescriptor getImageDescriptor(String path)
path
- the path
public static void logError(String message, Exception e)
message
- The message for the IStatus
to be logged for the
plugin via MuvitorActivator
.e
- An optional Exception to be reported.public static String getUniqueExtensionAttributeValue(String exPointID, String attribID)
exPointID
- The extension to be looked at.attribID
- The unique attribute whose value is requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |