org.eclipse.core.internal.events
Class PathVariableChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.core.internal.events.PathVariableChangeEvent
All Implemented Interfaces:
java.io.Serializable, IPathVariableChangeEvent

public class PathVariableChangeEvent
extends java.util.EventObject
implements IPathVariableChangeEvent

Describes a change in path variable. Core's default implementation for the IPathVariableChangeEvent interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.eclipse.core.resources.IPathVariableChangeEvent
VARIABLE_CHANGED, VARIABLE_CREATED, VARIABLE_DELETED
 
Constructor Summary
PathVariableChangeEvent(IPathVariableManager source, java.lang.String variableName, org.eclipse.core.runtime.IPath value, int type)
          Constructor for this class.
 
Method Summary
 int getType()
          Returns the type of event being reported.
 org.eclipse.core.runtime.IPath getValue()
          Returns the variable's current value.
 java.lang.String getVariableName()
          Returns the affected variable's name.
 java.lang.String toString()
          Return a string representation of this object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.resources.IPathVariableChangeEvent
getSource
 

Constructor Detail

PathVariableChangeEvent

public PathVariableChangeEvent(IPathVariableManager source,
                               java.lang.String variableName,
                               org.eclipse.core.runtime.IPath value,
                               int type)
Constructor for this class.

Method Detail

getValue

public org.eclipse.core.runtime.IPath getValue()
Description copied from interface: IPathVariableChangeEvent
Returns the variable's current value. If the event type is VARIABLE_CHANGED then it is the new value, if the event type is VARIABLE_CREATED then it is the new value, or if the event type is VARIABLE_DELETED then it will be null.

Specified by:
getValue in interface IPathVariableChangeEvent
Returns:
the variable's current value, or null
See Also:
IPathVariableChangeEvent.getValue()

getVariableName

public java.lang.String getVariableName()
Description copied from interface: IPathVariableChangeEvent
Returns the affected variable's name.

Specified by:
getVariableName in interface IPathVariableChangeEvent
Returns:
the affected variable's name
See Also:
IPathVariableChangeEvent.getVariableName()

getType

public int getType()
Description copied from interface: IPathVariableChangeEvent
Returns the type of event being reported.

Specified by:
getType in interface IPathVariableChangeEvent
Returns:
one of the event type constants
See Also:
IPathVariableChangeEvent.getType()

toString

public java.lang.String toString()
Return a string representation of this object.

Overrides:
toString in class java.util.EventObject