edu.stanford.hci.dtools
Class DtoolsPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by edu.stanford.hci.dtools.DtoolsPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The plugin class (singleton).

This instance can be shared between all extensions in the plugin. Information shared between extensions can be persisted by using the PreferenceStore.

Author:
Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )
See Also:

This software is distributed under the BSD License.

This code is partially based on code that is copyright (c) 2004 Elias Volanakis. See License.txt

Field Summary
static java.lang.String EVENT_DISPLAY
           
static java.lang.String EVENT_OSC_IN
           
static java.lang.String EVENT_OSC_OUT
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
DtoolsPlugin()
          The constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Attach a non-null PropertyChangeListener to this object.
 void addPropertyChangeListener(java.lang.String str, java.beans.PropertyChangeListener l)
          Attach a non-null PropertyChangeListener to this object.
 void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
          Report a property change to registered listeners (for example edit parts).
 DeviceEditor getActiveDeviceEditor()
           
 StatechartEditor getActiveStatechartEditor()
           
static DtoolsPlugin getDefault()
          Returns the shared plugin instance.
 HardwareInputDispatcher getHardwareInputDispatcher()
           
 HardwareOutputDispatcher getHardwareOutputDispatcher()
           
 ImageCache getImageCache()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a PropertyChangeListener from this component.
 void setHardwareInputDispatcher(HardwareInputDispatcher in)
           
 void setHardwareOutputDispatcher(HardwareOutputDispatcher out)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, start, startup, stop
 
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

EVENT_DISPLAY

public static final java.lang.String EVENT_DISPLAY
See Also:
Constant Field Values

EVENT_OSC_IN

public static final java.lang.String EVENT_OSC_IN
See Also:
Constant Field Values

EVENT_OSC_OUT

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

DtoolsPlugin

public DtoolsPlugin()
The constructor.

Method Detail

getDefault

public static DtoolsPlugin getDefault()
Returns the shared plugin instance.


getImageCache

public ImageCache getImageCache()

getHardwareInputDispatcher

public HardwareInputDispatcher getHardwareInputDispatcher()

getHardwareOutputDispatcher

public HardwareOutputDispatcher getHardwareOutputDispatcher()

setHardwareInputDispatcher

public void setHardwareInputDispatcher(HardwareInputDispatcher in)

setHardwareOutputDispatcher

public void setHardwareOutputDispatcher(HardwareOutputDispatcher out)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Attach a non-null PropertyChangeListener to this object.

Parameters:
l - a non-null PropertyChangeListener instance
Throws:
java.lang.IllegalArgumentException - if the parameter is null

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String str,
                                      java.beans.PropertyChangeListener l)
Attach a non-null PropertyChangeListener to this object.

Parameters:
l - a non-null PropertyChangeListener instance
Throws:
java.lang.IllegalArgumentException - if the parameter is null

firePropertyChange

public void firePropertyChange(java.lang.String property,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
Report a property change to registered listeners (for example edit parts).

Parameters:
property - the programmatic name of the property that changed
oldValue - the old value of this property
newValue - the new value of this property

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from this component.

Parameters:
l - a PropertyChangeListener instance

getActiveStatechartEditor

public StatechartEditor getActiveStatechartEditor()

getActiveDeviceEditor

public DeviceEditor getActiveDeviceEditor()