|
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.ltk.core.refactoring.participants.ValidateEditChecker
A validate edit checker is a shared checker to collect files
to be validated all at once. A validate edit checker checks
if the files are in sync with the underlying files system.
Additionally IWorkspace#validateEdit
is called for
all read-only resources.
Note: this class is not intended to be extended by clients.
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
Constructor Summary | |
---|---|
ValidateEditChecker(Object context)
The context passed to the validate edit call. |
Method Summary | |
---|---|
void |
addFile(IFile file)
Adds the given file to this checker. |
void |
addFiles(IFile[] files)
Adds the given array of files. |
RefactoringStatus |
check(IProgressMonitor monitor)
Performs the actual condition checking. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidateEditChecker(Object context)
context
- the org.eclipse.swt.widgets.Shell
that is
to be used to parent any dialogs with the user, or null
if
there is no UI context (declared as an Object
to avoid any
direct references on the SWT component)IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
Method Detail |
public void addFile(IFile file)
file
- the file to addpublic void addFiles(IFile[] files)
files
- the array of files to addpublic RefactoringStatus check(IProgressMonitor monitor) throws CoreException
check
in interface IConditionChecker
monitor
- a progress monitor to report progress
CoreException
- if an error occurred during condition
checking. The check is interpreted as failed if this happens
|
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.