org.eclipse.mtj.core.project.runtime.event
Class SwitchActiveMTJRuntimeEvent
java.lang.Object
java.util.EventObject
org.eclipse.mtj.core.project.runtime.event.SwitchActiveMTJRuntimeEvent
-
All Implemented Interfaces:
-
Serializable
-
public class SwitchActiveMTJRuntimeEvent
- extends
EventObject
SwitchActiveMTJRuntimeEvent is used to notify that active MTJRuntime for a
MTJProject switched.
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.
SwitchActiveMTJRuntimeEvent
public SwitchActiveMTJRuntimeEvent(
MTJRuntimeList source,
MTJRuntime oldActiveConfig,
MTJRuntime newActiveConfig)
- Creates a new instance of SwitchActiveMTJRuntimeEvent.
-
Parameters:
-
source
- the MTJRuntimeList in which the active MTJRuntime has been
switched. -
oldActiveConfig
- the previous active runtime. -
newActiveConfig
- the newly activated runtime.
getNewActiveMTJRuntime
public
MTJRuntime getNewActiveMTJRuntime()
- Return the newly activated runtime.
-
-
Returns:
- the newly activated runtime.
getOldActiveMTJRuntime
public
MTJRuntime getOldActiveMTJRuntime()
- Return the previous active runtime.
-
-
Returns:
- the previous active runtime.
setNewActiveMTJRuntime
public void setNewActiveMTJRuntime(
MTJRuntime newActiveRuntime)
- Set the newly activated runtime.
-
-
Parameters:
-
newActiveRuntime
- the newly activated runtime.
setOldActiveMTJRuntime
public void setOldActiveMTJRuntime(
MTJRuntime oldActiveRuntime)
- Set the previous active runtime.
-
-
Parameters:
-
oldActiveRuntime
- the previous active runtime.