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.ltk.core.refactoring.participants
Class ValidateEditChecker


java.lang.Object
  extended by 
org.eclipse.ltk.core.refactoring.participants.ValidateEditChecker
All Implemented Interfaces:
IConditionChecker

public class ValidateEditChecker
extends Object
implements IConditionChecker

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: Since 3.2, a ResourceChangeChecker exists. If clients add their changed files to the ResourceChangeChecker there is no need to add them to a validate edit checker as well. Files marked as changed in the resource operation checker will be automatically added to a validate edit checker (if one exists).

Note: this class is not intended to be extended by clients.

Since:
3.0
See Also:
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
Restriction:
This class is not intended to be subclassed by clients.

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

ValidateEditChecker

public ValidateEditChecker(
Object context)
The context passed to the validate edit call.

Parameters:
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)
See Also:
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
Method Detail

addFile

public void addFile(
IFile file)
Adds the given file to this checker.

Parameters:
file - the file to add

addFiles

public void addFiles(
IFile[] files)
Adds the given array of files.

Parameters:
files - the array of files to add

check

public 
RefactoringStatus check(
IProgressMonitor monitor)
                        throws 
CoreException
Performs the actual condition checking.

Specified by:
check in interface IConditionChecker
Parameters:
monitor - a progress monitor to report progress
Returns:
the outcome of the condition check
Throws:
CoreException - if an error occurred during condition checking. The check is interpreted as failed if this happens

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