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 CheckConditionsContext


java.lang.Object
  extended by 
org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext

public class CheckConditionsContext
extends Object

A context that is shared between the refactoring processor and all its associated participants during condition checking.

The context manages a set of IConditionCheckerobjects to collect condition checks that should be perform across all participants and the processor. For example validating if a file can be changed (see IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object) should only be called once for all files modified by the processor and all participants.

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

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
CheckConditionsContext ()
           
 
Method Summary
 void add ( IConditionChecker checker)
          Adds the given condition checker.
  RefactoringStatus check ( IProgressMonitor pm)
          Checks the condition of all registered condition checkers and returns a merge status result.
  IConditionChecker getChecker ( Class clazz)
          Returns the condition checker of the given type.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckConditionsContext

public CheckConditionsContext()
Method Detail

getChecker

public 
IConditionChecker getChecker(
Class clazz)
Returns the condition checker of the given type.

Parameters:
clazz - the type of the condition checker
Returns:
the condition checker or null if no checker is registered for the given type

add

public void add(
IConditionChecker checker)
         throws 
CoreException
Adds the given condition checker. An exception will be thrown if a checker of the same type already exists in this context.

Parameters:
checker - the checker to add
Throws:
CoreException - if a checker of the same type already exists

check

public 
RefactoringStatus check(
IProgressMonitor pm)
                        throws 
CoreException
Checks the condition of all registered condition checkers and returns a merge status result.

Parameters:
pm - a progress monitor or null if no progress reporting is desired
Returns:
the combined status result
Throws:
CoreException - if an error occurs during condition checking

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