|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.operations.UndoContext
A simple, lightweight undo context that can be used to tag any operation. It does not provided a specialized label. This class may be instantiated by clients. This class may also be subclassed.
Constructor Summary | |
---|---|
UndoContext()
|
Method Summary | |
---|---|
String |
getLabel()
Get the label that describes the undo context. |
boolean |
matches(IUndoContext context)
Return whether the specified context is considered a match for the receiving context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UndoContext()
Method Detail |
public String getLabel()
Get the label that describes the undo context. The default implementation returns the empty String. Subclasses may override.
getLabel
in interface IUndoContext
public boolean matches(IUndoContext context)
Return whether the specified context is considered a match for the receiving context. When a context matches another context, operations that have the context are considered to also have the matching context. The default implementation checks whether the supplied context is identical to this context. Subclasses may override.
matches
in interface IUndoContext
context
- the context to be checked against the receiving context.
true
if the receiving context can be considered a
match for the specified context, and false
if it
cannot.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.