java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.sintef.mofscript.editor.MofScriptEditorPlugin
public class MofScriptEditorPlugin
The main MOFSCript plugin class
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 | |
---|---|
MofScriptEditorPlugin()
The default constructor. |
Method Summary | |
---|---|
void |
executionMessage(java.lang.String type,
java.lang.String description)
ExecutionProductionListener interface Handles the executionMessage event. |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
Returns the active page |
MofScriptScanner |
getCodeScanner()
Returns the plugins scanner |
ColorManager |
getColorManager()
Returns the plugins color manager |
static MofScriptEditorPlugin |
getDefault()
Returns the shared instance. |
static ExecutionUtility |
getExecutionUtility()
Returns the execution utility instance |
org.eclipse.swt.widgets.FileDialog |
getFileDialog()
REturns a file dialog |
org.eclipse.swt.widgets.FileDialog |
getFileSaveDialog()
Returns a file save dialog |
ParserUtil |
getParserUtil()
Returns the parser util used for access to parsing and exeuction |
java.lang.String |
getPreferenceString(java.lang.String what)
Returns a preference String from the preference store |
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.ui.console.MessageConsoleStream |
getStream()
Returns the message stream associated with the console |
static boolean |
getUMLIsAvailable()
Returns a flag checking if UML2 support is available |
boolean |
hasUML2Support()
Returns a flag for UML2 support |
void |
initializeDefaultPluginPreferences()
|
protected void |
initUMLSupport()
Tests if UML2 classes are available by dynamic instantitation If they are, the editor (and runtime) can provide extended support for UML2 |
static void |
print(java.lang.String s)
prints a message to the console |
static void |
println(java.lang.String s)
Prints a message to the console |
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, 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 MofScriptEditorPlugin()
Method Detail |
---|
protected void initUMLSupport()
public static boolean getUMLIsAvailable()
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static MofScriptEditorPlugin getDefault()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
public static java.lang.String getResourceString(java.lang.String key)
public static ExecutionUtility getExecutionUtility()
public java.util.ResourceBundle getResourceBundle()
public ColorManager getColorManager()
public MofScriptScanner getCodeScanner()
public boolean hasUML2Support()
public ParserUtil getParserUtil()
public org.eclipse.swt.widgets.FileDialog getFileDialog()
public org.eclipse.swt.widgets.FileDialog getFileSaveDialog()
public void initializeDefaultPluginPreferences()
initializeDefaultPluginPreferences
in class org.eclipse.ui.plugin.AbstractUIPlugin
public java.lang.String getPreferenceString(java.lang.String what)
what
-
public static void print(java.lang.String s)
s
- public static void println(java.lang.String s)
s
- public static org.eclipse.ui.console.MessageConsoleStream getStream()
public void executionMessage(java.lang.String type, java.lang.String description)
executionMessage
in interface ExecutionMessageListener