org.eclipse.emf.workspace.util
Class WorkspaceValidateEditSupport
java.lang.Object
org.eclipse.emf.transaction.util.ValidateEditSupport.Default
org.eclipse.emf.workspace.util.WorkspaceValidateEditSupport
- All Implemented Interfaces:
- ValidateEditSupport
public class WorkspaceValidateEditSupport
- extends ValidateEditSupport.Default
An implementation of the transaction validate-edit support that uses the
Eclipse Platform's
Workspace API
to validate edits.
Clients may find it useful to install
default transaction options
specifying an instance of this class and an appropriate SWT shell for
validate-edit support.
- Since:
- 1.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkspaceValidateEditSupport
public WorkspaceValidateEditSupport()
doValidateEdit
protected IStatus doValidateEdit(Transaction transaction,
Collection<? extends Resource> resources,
Object context)
- Description copied from class:
ValidateEditSupport.Default
- Performs the actual edit validation. May be overridden by subclasses
to provide a different mechanism.
- Overrides:
doValidateEdit
in class ValidateEditSupport.Default
- Parameters:
transaction
- the transaction that is attempting to commitresources
- the resources to validate-editcontext
- the validate-edit context, or null
if none
- Returns:
- the result of the validate-edit attempt
getFiles
protected IFile[] getFiles(Collection<? extends Resource> resources)