|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompileContext
An interface allowing access and modification of the data associated with the current compile session.
| Method Summary | |
|---|---|
void |
addMessage(CompilerMessageCategory category,
java.lang.String message,
java.lang.String url,
int lineNum,
int columnNum)
Allows to add a message to be shown in Compiler message view. |
VirtualFile[] |
getAllOutputDirectories()
Returns the list of all output directories. |
CompileScope |
getCompileScope()
Returns the current compile scope. |
int |
getMessageCount(CompilerMessageCategory category)
Returns the count of messages of the specified category added during the current compile session. |
CompilerMessage[] |
getMessages(CompilerMessageCategory category)
Returns all messages of the specified category added during the current compile session. |
Module |
getModuleByFile(VirtualFile file)
Returns the module to which the specified file belongs. |
VirtualFile |
getModuleOutputDirectory(Module module)
Returns the output directory for the specified module. |
VirtualFile |
getModuleOutputDirectoryForTests(Module module)
Returns the test output directory for the specified module. |
ProgressIndicator |
getProgressIndicator()
Returns the progress indicator of the compilation process. |
CompileScope |
getProjectCompileScope()
Returns the compile scope which would be used if the entire project was rebuilt. |
VirtualFile[] |
getSourceRoots(Module module)
Returns the source roots for the specified module. |
boolean |
isMake()
Checks if the compilation is incremental, i.e. triggered by one of "Make" actions. |
void |
requestRebuildNextTime(java.lang.String message)
A compiler may call this method in order to request complete project rebuild. |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Method Detail |
|---|
void addMessage(CompilerMessageCategory category,
java.lang.String message,
@Nullable
java.lang.String url,
int lineNum,
int columnNum)
category - the category of a message (information, error, warning).message - the text of the message.url - a url to the file to which the message applies, null if not available.lineNum - a line number, -1 if not available.columnNum - a columnt number, -1 if not available.CompilerMessage[] getMessages(CompilerMessageCategory category)
category - the category for which messages are requested.
int getMessageCount(CompilerMessageCategory category)
category - the category for which messages are requested.
ProgressIndicator getProgressIndicator()
CompileScope getCompileScope()
CompileScope getProjectCompileScope()
getCompileScope() may return the scope, that is more narrow than ProjectCompileScope.
void requestRebuildNextTime(java.lang.String message)
Module getModuleByFile(VirtualFile file)
file - the file to check.
VirtualFile[] getSourceRoots(Module module)
VirtualFile[] getAllOutputDirectories()
@Nullable VirtualFile getModuleOutputDirectory(Module module)
module - the module to check.
@Nullable VirtualFile getModuleOutputDirectoryForTests(Module module)
module - the module to check.
boolean isMake()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||