|
|||||||||||
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.ocleditor.internal.core.OclEditorPlugin
The main plugin class to be used in the desktop.
Also handles the communication with plugins that extends this plugin. E.g. Parser and ParseListener.
Also handles adding/removing the OCL nature/builder.
Field Summary |
Fields inherited from class org.eclipse.core.runtime.Plugin |
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
OclEditorPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
The standard constructor. |
Method Summary | |
void |
addOclNature(org.eclipse.core.resources.IProject project)
Adds the OCL nature to the specified project. |
void |
addParseListener(IOclParseRunListener listener)
Manually add a parse listener. |
void |
fireParseFailed(IOclParserError[] errors)
Parse listeners are informed about the test failed. |
void |
fireParseFinished()
Parse listeners are informed about the test finished. |
void |
fireParseStarted(int type)
Parse listeners are informed about the test started. |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
|
static OclEditorPlugin |
getDefault()
Returns the shared instance. |
IOclParser |
getOclParser()
Returns the plugin's OCL parser. |
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. |
void |
removeOclNature(org.eclipse.core.resources.IProject project)
Removes the OCL nature from the specified project. |
void |
removeParseListener(IOclParseRunListener listener)
Remove a parse listener. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, start, stop, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OclEditorPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
descriptor
- contains information from the plugin's manifest file (plugin.xml).Method Detail |
public static OclEditorPlugin 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 IOclParser getOclParser()
public void addParseListener(IOclParseRunListener listener)
listener
- public void removeParseListener(IOclParseRunListener listener)
listener
- public void fireParseStarted(int type)
type
- can be IOclParseRunListener.SYNTAXCHECK or IOclParseRunListener.TYPECHECK.public void fireParseFinished()
public void fireParseFailed(IOclParserError[] errors)
errors
- errors that occured.public void addOclNature(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
project
-
org.eclipse.core.runtime.CoreException
public void removeOclNature(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
project
-
org.eclipse.core.runtime.CoreException
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |