Class RecompileTrigger
java.lang.Object
com.iizigo.java.parser.RecompileTrigger
Class to trigger recompile of Java sources in a separate job. The IIZI problems of a Java source are created by the IIZI compilation participant when the Java builder compiles it, so when a property its annotations or method references refer to is broken, found again or disposed of, the job touches the file (a content change in the workspace, nothing is written) and the auto-build compiles it again.
A file whose buffer holds unsaved changes is not touched: its editor would report the file as changed on the file system, and its save builds it anyway. A file of a Module project that is being closed or deleted is not queued.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic booleantriggerRecompile(org.eclipse.jdt.core.ICompilationUnit unit) Triggers a file for recompile.
Constructor Details
RecompileTrigger
public RecompileTrigger()
Method Details
triggerRecompile
public static boolean triggerRecompile(org.eclipse.jdt.core.ICompilationUnit unit) Triggers a file for recompile.- Parameters:
unit- The compilation unit of the file.- Returns:
- true when the file is queued for the job, false for a compilation unit without a file that is accessible, or a file of a Module project that is being closed or deleted (the Project Manager no longer holds its Module).