public interface ActionContext extends Conditions
Modifier and Type | Method and Description |
---|---|
boolean |
checkDates(DateTestType dateTest,
String toolName,
Collection<? extends File> files,
Collection<? extends File> testFiles)
Checks dates on files.
|
boolean |
checkDates(String toolName)
Operates autosave or checks for modified files depending on whether
autosave is on or off.
|
boolean |
checkFutureDates(String toolName,
Collection<? extends File> files,
String fileTypeDescription)
Checks for future dates on files, and if there are any asks the user
whether they should be corrected, not corrected, or the operation should
be aborted.
|
boolean |
compileProject(PostExecAction postAction,
String actionLabel)
Compiles a project if necessary.
|
void |
executeCommand(String command,
ExecType type,
String errorFormat,
String workingDir,
String envCommands,
String toolName,
Highlightable highlightItem,
PostExecAction postAction,
OutputListener outputListener,
String foldPattern,
DateTestType dateTest,
Collection<? extends File> dateTestFiles,
Collection<? extends File> dateTestTestFiles)
Executes a command.
|
Frame |
getDialogParent()
Gets a frame that should be used as the parent for configuration and
error dialogs.
|
String |
getTitle()
Gets a project or file name.
|
boolean |
prepareExec(ExecType type,
String toolName)
Prepares to execute a command.
|
getActiveClassFiles, getActiveFile, getCharset, getLocationData, getProjectClassAndJarFiles, getProjectDir, getProjectFiles, getProjectTestFiles, getTabSize, isInProject
boolean checkDates(DateTestType dateTest, String toolName, Collection<? extends File> files, Collection<? extends File> testFiles)
dateTest
- the type of date testing to be done. Currently, these
tests will only be done for Java source files.toolName
- display name for the tool.files
- the source files to be tested. This may be null.testFiles
- the test files to be tested. This may be null.boolean checkDates(String toolName)
toolName
- display name for the tool.boolean checkFutureDates(String toolName, Collection<? extends File> files, String fileTypeDescription)
toolName
- display name for the tool.files
- the files to be tested.fileTypeDescription
- a description of the file purpose, such as
"source" or "test".boolean compileProject(PostExecAction postAction, String actionLabel)
postAction
- action to be performed after compilation if compilation
was done.actionLabel
- short label for the command that will run after
compilation, such as "JUnit Run"void executeCommand(String command, ExecType type, String errorFormat, String workingDir, String envCommands, String toolName, Highlightable highlightItem, PostExecAction postAction, OutputListener outputListener, String foldPattern, DateTestType dateTest, Collection<? extends File> dateTestFiles, Collection<? extends File> dateTestTestFiles)
command
- the unprocessed command.type
- the command type.errorFormat
- the error format flags and regular expression.workingDir
- working directory for the execution.envCommands
- environment variable modification commands.toolName
- display name for the tool.highlightItem
- item to be highlighted during execution. This may be
null.postAction
- action to be performed after the command is complete.
This may be null.outputListener
- listener for output text.foldPattern
- groups of lines that match this pattern will be folded
after the command executes. This may be null.dateTest
- the type of date testing to be done. Currently, these
tests will only be done for Java source files.dateTestFiles
- if this dateTestTestFiles are non-null, only these
source files will be date tested rather than the whole project.dateTestTestFiles
- if this dateTestFiles are non-null, only these
test files will be date tested rather than the whole project.Frame getDialogParent()
String getTitle()
boolean prepareExec(ExecType type, String toolName)
type
- the command type.toolName
- display name for the tool.