Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.commands.operations
Class UndoContext


java.lang.Object
  extended by 
org.eclipse.core.commands.operations.UndoContext
All Implemented Interfaces:
IUndoContext
Direct Known Subclasses:
ObjectUndoContext

public class UndoContext
extends Object
implements IUndoContext

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.

Since:
3.1

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

UndoContext

public UndoContext()
Method Detail

getLabel

public 
String getLabel()

Get the label that describes the undo context. The default implementation returns the empty String. Subclasses may override.

Specified by:
getLabel in interface IUndoContext
Returns:
the label for the context.

matches

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.

Specified by:
matches in interface IUndoContext
Parameters:
context - the context to be checked against the receiving context.
Returns:
true if the receiving context can be considered a match for the specified context, and false if it cannot.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire