Eclipse Platform
Release 3.1

org.eclipse.core.commands.common
Class AbstractNamedHandleEvent

java.lang.Object
  extended byorg.eclipse.core.commands.common.AbstractBitSetEvent
      extended byorg.eclipse.core.commands.common.AbstractNamedHandleEvent
Direct Known Subclasses:
CategoryEvent, CommandEvent, ContextEvent, SchemeEvent

public abstract class AbstractNamedHandleEvent
extends AbstractBitSetEvent

An event fired from a NamedHandleObject. This provides notification of changes to the defined state, the name and the description.


Field Summary
protected static int CHANGED_DEFINED
          The bit used to represent whether the category has changed its defined state.
protected static int CHANGED_DESCRIPTION
          The bit used to represent whether the category has changed its description.
protected static int CHANGED_NAME
          The bit used to represent whether the category has changed its name.
protected static int LAST_USED_BIT
          The last used bit so that subclasses can add more properties.
 
Fields inherited from class org.eclipse.core.commands.common.AbstractBitSetEvent
changedValues
 
Constructor Summary
protected AbstractNamedHandleEvent(boolean definedChanged, boolean descriptionChanged, boolean nameChanged)
          Constructs a new instance of AbstractHandleObjectEvent.
 
Method Summary
 boolean isDefinedChanged()
          Returns whether or not the defined property changed.
 boolean isDescriptionChanged()
          Returns whether or not the description property changed.
 boolean isNameChanged()
          Returns whether or not the name property changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGED_DEFINED

protected static final int CHANGED_DEFINED
The bit used to represent whether the category has changed its defined state.

See Also:
Constant Field Values

CHANGED_DESCRIPTION

protected static final int CHANGED_DESCRIPTION
The bit used to represent whether the category has changed its description.

See Also:
Constant Field Values

CHANGED_NAME

protected static final int CHANGED_NAME
The bit used to represent whether the category has changed its name.

See Also:
Constant Field Values

LAST_USED_BIT

protected static final int LAST_USED_BIT
The last used bit so that subclasses can add more properties.

See Also:
Constant Field Values
Constructor Detail

AbstractNamedHandleEvent

protected AbstractNamedHandleEvent(boolean definedChanged,
                                   boolean descriptionChanged,
                                   boolean nameChanged)
Constructs a new instance of AbstractHandleObjectEvent.

Parameters:
definedChanged - true, iff the defined property changed.
descriptionChanged - true, iff the description property changed.
nameChanged - true, iff the name property changed.
Method Detail

isDefinedChanged

public final boolean isDefinedChanged()
Returns whether or not the defined property changed.

Returns:
true, iff the defined property changed.

isDescriptionChanged

public final boolean isDescriptionChanged()
Returns whether or not the description property changed.

Returns:
true, iff the description property changed.

isNameChanged

public final boolean isNameChanged()
Returns whether or not the name property changed.

Returns:
true, iff the name property changed.

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.