|
||||||||||
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
vocleditor.VOCLEditorPlugin
public class VOCLEditorPlugin
The main VOCLEditor plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
ID
The ID-String for the plugin |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
VOCLEditorPlugin()
The constructor. |
Method Summary | |
---|---|
static java.util.List |
getAllClassifierRoleTypes(VOCLModel.Constraint constraint)
Returns the list of classifier role types in the constraint. |
static java.util.List |
getAllClassifierRoleTypes(VOCLModel.NavExp navExp)
Returns the list of classifer role types in the navigation expression. |
static java.util.List |
getAllConditions(VOCLModel.Constraint constraint)
Returns all condition in the constraint. |
static java.util.List |
getAllConditions(VOCLModel.NavExp navExp)
Returns all condition in the navigation expression. |
static java.util.List |
getAllTypes(VOCLModel.ClassifierRole classifierRole)
Returns all types in the classifier role. |
static java.util.List |
getAllTypes(VOCLModel.Constraint constraint)
Returns all types in the constraint. |
static java.util.List |
getAllTypes(VOCLModel.NavExp navExp)
Returns all types in the navigation expression. |
static VOCLModel.Constraint |
getConstraint(VOCLModel.ModelElement melm)
convenience method to find the Constraint a ModelElement belongs to (saves some links in the VOCLModel) |
static VOCLEditorPlugin |
getDefault()
Returns the shared instance. |
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 void |
printDebug(java.lang.String x)
Global method for output of debug-messages Will output the message if VOCLEditorConstants.debugMode
is true |
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 |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
Constructor Detail |
---|
public VOCLEditorPlugin()
Method Detail |
---|
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
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
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
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
public static VOCLEditorPlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
key
- The key to search for
public java.util.ResourceBundle getResourceBundle()
public static void printDebug(java.lang.String x)
VOCLEditorConstants.debugMode
is true
x
- The message to ouputpublic static VOCLModel.Constraint getConstraint(VOCLModel.ModelElement melm)
melm
- a VOCLModel.ModelElement
public static java.util.List getAllTypes(VOCLModel.Constraint constraint)
constraint
- the constraint
public static java.util.List getAllTypes(VOCLModel.NavExp navExp)
navExp
- the navigation expression
public static java.util.List getAllTypes(VOCLModel.ClassifierRole classifierRole)
classifierRole
- the classifier role
public static java.util.List getAllClassifierRoleTypes(VOCLModel.Constraint constraint)
constraint
- the constraint
public static java.util.List getAllClassifierRoleTypes(VOCLModel.NavExp navExp)
navExp
- the navigation expression
public static java.util.List getAllConditions(VOCLModel.Constraint constraint)
constraint
- the constraint
public static java.util.List getAllConditions(VOCLModel.NavExp navExp)
navExp
- the navigation expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |