edu.cmu.sei.osate.workspace
Class WorkspacePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by edu.cmu.sei.osate.workspace.WorkspacePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class WorkspacePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.


Field Summary
static java.lang.String AADL_PACKAGE_SEPARATOR
          Package separator in AADL source files.
static java.lang.String AADL_PACKAGES_DIR
          Aadl pakcages directory.
static java.lang.String AADL_PROJECT_FILE
          Name of preference for standard AADL property set file
static java.lang.String AADL_PROPERTIES_FILE
          Name of preference for standard AADL property set file
static java.lang.String AADLPATH_FILENAME
          Name of file containing project's aadlpath
static java.lang.String AUTO_REINSTANTIATE
           
static java.lang.String DEFAULT_MODEL_DIR
          Default model directory.
static java.lang.String DEFAULT_SOURCE_DIR
          Default source directory.
static java.lang.String EMF_REFERENCE_FLAG
          Name of preference for standard AADL property set file
static java.lang.String EXPAND_DEFAULT_FLAG
          Name of preference for standard AADL property set file
static java.lang.String FILE_PACKAGE_SEPARATOR
          Package separator in package file names.
static java.lang.String INSTANCE_MODEL_POSTFIX
          instance model name postfix
static java.lang.String MODEL_FILE_EXT
          File extension of AADL model files
static java.lang.String PLUGIN_ID
          ID of the AADL core plugin (value "edu.cmu.sei.osate.workspace")
static java.lang.String PROJECT_MODEL_DIR
          Name of model directory project property.
static java.lang.String PROJECT_SOURCE_DIR
          Name of source directory project property.
static java.lang.String PROPERTY_SETS_DIR
          Default model directory.
static java.lang.String SOURCE_FILE_EXT
          File extension of AADL source text files
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
WorkspacePlugin()
          The constructor.
 
Method Summary
static void ensureDirectoryExistance(java.io.File toCheck)
           
static WorkspacePlugin getDefault()
          Returns the shared instance.
static java.net.URL getInstallURL()
           
static java.lang.String getPluginId()
           
static org.eclipse.jface.preference.PreferenceStore getPreferenceStore(org.eclipse.core.resources.IProject project)
           
 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 log(org.eclipse.core.runtime.IStatus status)
           
static void log(java.lang.Throwable t)
           
static void logErrorMessage(java.lang.String message)
           
 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, 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

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
ID of the AADL core plugin (value "edu.cmu.sei.osate.workspace")

See Also:
Constant Field Values

AADLPATH_FILENAME

public static final java.lang.String AADLPATH_FILENAME
Name of file containing project's aadlpath

See Also:
Constant Field Values

SOURCE_FILE_EXT

public static final java.lang.String SOURCE_FILE_EXT
File extension of AADL source text files

See Also:
Constant Field Values

MODEL_FILE_EXT

public static final java.lang.String MODEL_FILE_EXT
File extension of AADL model files

See Also:
Constant Field Values

AADL_PACKAGE_SEPARATOR

public static final java.lang.String AADL_PACKAGE_SEPARATOR
Package separator in AADL source files.

See Also:
Constant Field Values

FILE_PACKAGE_SEPARATOR

public static final java.lang.String FILE_PACKAGE_SEPARATOR
Package separator in package file names.

See Also:
Constant Field Values

AADL_PROPERTIES_FILE

public static final java.lang.String AADL_PROPERTIES_FILE
Name of preference for standard AADL property set file

See Also:
Constant Field Values

AADL_PROJECT_FILE

public static final java.lang.String AADL_PROJECT_FILE
Name of preference for standard AADL property set file

See Also:
Constant Field Values

PROJECT_SOURCE_DIR

public static final java.lang.String PROJECT_SOURCE_DIR
Name of source directory project property.

See Also:
Constant Field Values

DEFAULT_SOURCE_DIR

public static final java.lang.String DEFAULT_SOURCE_DIR
Default source directory. In canonical IPath format with "/" as the separator character.

See Also:
Constant Field Values

PROJECT_MODEL_DIR

public static final java.lang.String PROJECT_MODEL_DIR
Name of model directory project property.

See Also:
Constant Field Values

DEFAULT_MODEL_DIR

public static final java.lang.String DEFAULT_MODEL_DIR
Default model directory. In canonical IPath format with "/" as the separator character.

See Also:
Constant Field Values

AADL_PACKAGES_DIR

public static final java.lang.String AADL_PACKAGES_DIR
Aadl pakcages directory.

See Also:
Constant Field Values

PROPERTY_SETS_DIR

public static final java.lang.String PROPERTY_SETS_DIR
Default model directory.

See Also:
Constant Field Values

INSTANCE_MODEL_POSTFIX

public static final java.lang.String INSTANCE_MODEL_POSTFIX
instance model name postfix

See Also:
Constant Field Values

EXPAND_DEFAULT_FLAG

public static final java.lang.String EXPAND_DEFAULT_FLAG
Name of preference for standard AADL property set file

See Also:
Constant Field Values

EMF_REFERENCE_FLAG

public static final java.lang.String EMF_REFERENCE_FLAG
Name of preference for standard AADL property set file

See Also:
Constant Field Values

AUTO_REINSTANTIATE

public static final java.lang.String AUTO_REINSTANTIATE
See Also:
Constant Field Values
Constructor Detail

WorkspacePlugin

public WorkspacePlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

getDefault

public static WorkspacePlugin getDefault()
Returns the shared instance.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


getInstallURL

public static java.net.URL getInstallURL()

log

public static void log(org.eclipse.core.runtime.IStatus status)

log

public static void log(java.lang.Throwable t)

logErrorMessage

public static void logErrorMessage(java.lang.String message)

getPluginId

public static java.lang.String getPluginId()

getPreferenceStore

public static org.eclipse.jface.preference.PreferenceStore getPreferenceStore(org.eclipse.core.resources.IProject project)

ensureDirectoryExistance

public static void ensureDirectoryExistance(java.io.File toCheck)