org.eclipse.gmf.tooling.runtime
Class GMFToolingRuntimePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.gmf.tooling.runtime.GMFToolingRuntimePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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


Field Summary
static String ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
GMFToolingRuntimePlugin()
           
 
Method Summary
static GMFToolingRuntimePlugin getInstance()
           
 OclTrackerFactory getOclTrackerFactory()
          This is the main intended way to access the OclTrackerFactory.
 OclTrackerFactory getOclTrackerFactory(OclTrackerFactory.Type type)
          This is the helper method allowing caller to access the specific OclTrackerFactory implementation without adding an explicit dependency to the containing 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
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

GMFToolingRuntimePlugin

public GMFToolingRuntimePlugin()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

getInstance

public static GMFToolingRuntimePlugin getInstance()

getOclTrackerFactory

public OclTrackerFactory getOclTrackerFactory()
This is the main intended way to access the OclTrackerFactory. This method will return the suited implementation based on the available plugins. Caller should not make any assumptions against the return implementation type.


getOclTrackerFactory

public OclTrackerFactory getOclTrackerFactory(OclTrackerFactory.Type type)
This is the helper method allowing caller to access the specific OclTrackerFactory implementation without adding an explicit dependency to the containing plugin.

This method will try to return the preferred implementation based on the available plugins, but will roll back to default implementation if preferred one is not available. Caller still is not recommended to make any assumptions about the returned implementation type.



Copyright © 2012. All Rights Reserved.