mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
getPresentableFile() for SourceGeneratingCompilers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user