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

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

  




 

 


org.eclipse.emf.workspace
Interface IResourceUndoContextPolicy

All Known Implementing Classes:
AbstractResourceUndoContextPolicy

public interface IResourceUndoContextPolicy

A rule determining the resources for which an IUndoableOperation should be tagged with ResourceUndoContexts. In general, these are the resources that

  • are modified by the operation, such that they are become dirty, and/or
  • whose editors should show the operation in their Undo menu

Clients may implement this interface, but it is recommended to extend the AbstractResourceUndoContextPolicy class whenever possible.

Since:
1.3
See Also:
AbstractResourceUndoContextPolicy

Field Summary
static  IResourceUndoContextPolicy DEFAULT
          The default undo-context policy used by editing domains for which none is assigned by the client application.
 
Method Summary
  Set< Resource> getContextResources ( IUndoableOperation operation, List<? extends Notification> notifications)
          Determines the resources in the undo context of the specified operation, during which execution the changes indicated by the given notifications occurred.
 

Field Detail

DEFAULT

static final 
IResourceUndoContextPolicy DEFAULT
The default undo-context policy used by editing domains for which none is assigned by the client application.

Method Detail

getContextResources

Set<
Resource> getContextResources(
IUndoableOperation operation,
                                  
List<? extends 
Notification> notifications)
Determines the resources in the undo context of the specified operation, during which execution the changes indicated by the given notifications occurred. This operation may be called several times for the same operation, but always with different notifications.

Parameters:
operation - the operation. It may or may not have finished executing. Must not be null
notifications - a list of notifications of changes caused by the operation during its execution, in the order in which they occurred. This may be an empty list, but never null
Returns:
the resources that are the undo context of this operation, or an empty list if none. Never ruterns null

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.


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