org.eclipse.mtj.core.project.runtime.event
Class MTJRuntimeNameChangeEvent
java.lang.Object
java.util.EventObject
org.eclipse.mtj.core.project.runtime.event.MTJRuntimeNameChangeEvent
-
All Implemented Interfaces:
-
Serializable
-
public class MTJRuntimeNameChangeEvent
- extends
EventObject
MTJRuntimeNameChangeEvent is used to notify that the name of the MTJRuntime
has 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.
MTJRuntimeNameChangeEvent
public MTJRuntimeNameChangeEvent(
MTJRuntime source,
String oldRuntimeName,
String newRuntimeName)
- Creates a new instance of MTJRuntimeNameChangeEvent.
-
Parameters:
-
source
- The MTJRuntime that has been changed. -
oldRuntimeName
- The previous MTJRuntime name. -
newRuntimeName
- The new MTJRuntime name.
getNewRuntimeName
public
String getNewRuntimeName()
- Return the new MTJRuntime name.
-
-
Returns:
- the new MTJRuntime name.
getOldRuntimeName
public
String getOldRuntimeName()
- Return the previous MTJRuntime name.
-
-
Returns:
- the previous MTJRuntime name.
setNewRuntimeName
public void setNewRuntimeName(
String newRuntimeName)
- Set the new MTJRuntime name.
-
-
Parameters:
-
newRuntimeName
- the new MTJRuntime name.
setOldRuntimeName
public void setOldRuntimeName(
String oldRuntimeName)
- Set the previous MTJRuntime name.
-
-
Parameters:
-
oldRuntimeName
- the previous MTJRuntime name.