org.eclipse.core.commands.contexts
Class ContextEvent
java.lang.Object
org.eclipse.core.commands.common.AbstractBitSetEvent
org.eclipse.core.commands.common.AbstractHandleObjectEvent
org.eclipse.core.commands.common.AbstractNamedHandleEvent
org.eclipse.core.commands.contexts.ContextEvent
- public final class ContextEvent
- extends AbstractNamedHandleEvent
An instance of this class describes changes to an instance of
IContext
.
This class is not intended to be extended by clients.
- Since:
- 3.1
- See Also:
IContextListener.contextChanged(ContextEvent)
Constructor Summary |
ContextEvent(Context context,
boolean definedChanged,
boolean nameChanged,
boolean descriptionChanged,
boolean parentIdChanged)
Creates a new instance of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextEvent
public ContextEvent(Context context,
boolean definedChanged,
boolean nameChanged,
boolean descriptionChanged,
boolean parentIdChanged)
- Creates a new instance of this class.
- Parameters:
context
- the instance of the interface that changed; must not be
null
.definedChanged
- true
, iff the defined property changed.nameChanged
- true
, iff the name property changed.descriptionChanged
- true
, iff the description property changed.parentIdChanged
- true
, iff the parentId property changed.
getContext
public final Context getContext()
- Returns the instance of the interface that changed.
- Returns:
- the instance of the interface that changed. Guaranteed not to be
null
.
isParentIdChanged
public final boolean isParentIdChanged()
- Returns whether or not the parentId property changed.
- Returns:
true
, iff the parentId property changed.
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.