|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.core.compiler.ValidationParticipant
public abstract class ValidationParticipant
A validation participant is notified of events occuring during the validation process. The notified events are the result of a build action, a clean action, a reconcile operation (for a working copy), etc.
Clients wishing to participate in the validation process must subclass this class, and implement
isActive(IJavaScriptProject)
, aboutToBuild(IJavaScriptProject)
,
reconcile(ReconcileContext)
, etc.
This class is intended to be subclassed by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
---|---|
static int |
NEEDS_FULL_BUILD
|
static int |
READY_FOR_BUILD
|
Constructor Summary | |
---|---|
ValidationParticipant()
|
Method Summary | |
---|---|
int |
aboutToBuild(IJavaScriptProject project)
Notifies this participant that a validation is about to start and provides it the opportunity to create missing source folders for generated source files. |
void |
buildStarting(BuildContext[] files,
boolean isBatch)
Notifies this participant that a validation operation is about to start and provides it the opportunity to generate source files based on the source files about to be validated. |
void |
cleanStarting(IJavaScriptProject project)
Notifies this participant that a clean is about to start and provides it the opportunity to delete generated source files. |
boolean |
isActive(IJavaScriptProject project)
Returns whether this participant is active for a given project. |
boolean |
isAnnotationProcessor()
|
void |
processAnnotations(BuildContext[] files)
|
void |
reconcile(ReconcileContext context)
Notifies this participant that a reconcile operation is happening. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int READY_FOR_BUILD
public static int NEEDS_FULL_BUILD
Constructor Detail |
---|
public ValidationParticipant()
Method Detail |
---|
public int aboutToBuild(IJavaScriptProject project)
Default is to return READY_FOR_BUILD
.
project
- the project about to build
public void buildStarting(BuildContext[] files, boolean isBatch)
files
- is an array of BuildContextisBatch
- identifies when the build is a batch buildpublic void cleanStarting(IJavaScriptProject project)
project
- the project about to be cleanedpublic boolean isActive(IJavaScriptProject project)
Default is to return false
.
For efficiency, participants that are not interested in the
given project should return false
for that project.
project
- the project to participate in
public boolean isAnnotationProcessor()
public void processAnnotations(BuildContext[] files)
public void reconcile(ReconcileContext context)
Note that a participant should not modify the buffer of the working copy that is being reconciled.
Default is to do nothing.
context
- the reconcile context to act on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |