Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.project.runtime.event
Class MTJRuntimeNameChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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.

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MTJRuntimeNameChangeEvent(MTJRuntime source, String oldRuntimeName, String newRuntimeName)
          Creates a new instance of MTJRuntimeNameChangeEvent.
 
Method Summary
 String getNewRuntimeName()
          Return the new MTJRuntime name.
 String getOldRuntimeName()
          Return the previous MTJRuntime name.
 void setNewRuntimeName(String newRuntimeName)
          Set the new MTJRuntime name.
 void setOldRuntimeName(String oldRuntimeName)
          Set the previous MTJRuntime name.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

Mobile Tools for Java
Release 1.0