org.eclipse.mtj.core.project.runtime.event
Class MTJRuntimeDeviceChangeEvent
java.lang.Object
java.util.EventObject
org.eclipse.mtj.core.project.runtime.event.MTJRuntimeDeviceChangeEvent
-
All Implemented Interfaces:
-
Serializable
-
public class MTJRuntimeDeviceChangeEvent
- extends
EventObject
MTJRuntimeDeviceChangeEvent is used to notify that the device of the
MTJRuntime changed.
All Events are constructed with a reference to the object, the "source", that
is logically deemed to be the object upon which the Event in question
initially occurred upon.
EXPERIMENTAL. This class or interface has been added as part
of a work in progress. There is no guarantee that this API will work or that
it will remain the same. Please do not use this API without consulting with
the MTJ team.
-
Since:
- 1.0
-
See Also:
-
Serialized Form
-
Restriction:
- This class is not intended to be subclassed by clients.
-
Restriction:
- This class is not intended to be instantiated by clients.
MTJRuntimeDeviceChangeEvent
public MTJRuntimeDeviceChangeEvent(
MTJRuntime source,
IDevice oldDevice,
IDevice newDevice)
- Creates a new instance of MTJRuntimeDeviceChangeEvent.
-
Parameters:
-
source
- the MTJRuntime that was changed. -
oldDevice
- the previous device instance. -
newDevice
- the new device instance.
getNewDevice
public
IDevice getNewDevice()
- Return the new device instance.
-
-
Returns:
- the new device instance.
getOldDevice
public
IDevice getOldDevice()
- Return the previous device instance.
-
-
Returns:
- the previous device instance.
setNewDevice
public void setNewDevice(
IDevice newDevice)
- Set the new device instance.
-
-
Parameters:
-
newDevice
- the new device instance.
setOldDevice
public void setOldDevice(
IDevice oldDevice)
- Set the previous device instance.
-
-
Parameters:
-
oldDevice
- the previous device instance.