getPresentableFile() for SourceGeneratingCompilers

This commit is contained in:
Eugene Zhuravlev
2011-03-22 13:48:36 +01:00
parent aa61d2f5d0
commit 1b3adec731
13 changed files with 104 additions and 30 deletions
@@ -15,6 +15,9 @@
*/
package com.intellij.openapi.compiler;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.vfs.VirtualFile;
/**
* A tag interface indicating that the compiler will generate Java sources.
* This affects the order of compiler calls.
@@ -22,4 +25,18 @@ package com.intellij.openapi.compiler;
* SourceGeneratingCompiler -> SourceInstrumentingCompiler -> TranslatingCompiler -> ClassInstrumentingCompiler -> ClassPostProcessingCompiler -> PackagingCompiler -> Validator
*/
public interface SourceGeneratingCompiler extends GeneratingCompiler {
/**
* Used by make subsystem to obtain the file that should be opened in the editor instead of generated file if there were errors found
* while compiling the generated file
*
*
* @param context current compile context
* @param module the module to which the generated file was attributed
* @param outputRoot the compiler output root
* @param generatedFile - the file that was generated by this compiler
* @return substituting file that should be used for navigation in UI or null if no such substitutor is available
*
*/
VirtualFile getPresentableFile(CompileContext context, Module module, VirtualFile outputRoot, VirtualFile generatedFile);
}