public abstract class ApplicationStarterBase extends java.lang.Object implements ApplicationStarter
ANY_MODALITY, EP_NAME, NON_MODAL, NOT_IN_EDT
Modifier | Constructor and Description |
---|---|
protected |
ApplicationStarterBase(java.lang.String commandName,
int... possibleArgumentsCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcessExternalCommandLine()
Applications that are capable of processing command-line arguments within a running IDE instance
should return
true from this method and implement ApplicationStarter.processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String) . |
java.lang.String |
getCommandName()
Command-line switch to start with this runner.
|
abstract java.lang.String |
getUsageMessage() |
boolean |
isHeadless()
Applications that are incapable of working in a headless mode should override the method and return
false . |
void |
main(java.lang.String [] args) |
void |
premain(java.util.List<java.lang.String> args)
Called before application initialization.
|
protected abstract java.util.concurrent.Future<CliResult> |
processCommand(java.util.List<java.lang.String> args,
java.lang.String currentDirectory) |
java.util.concurrent.Future<CliResult> |
processExternalCommandLineAsync(java.util.List<java.lang.String> args,
java.lang.String currentDirectory) |
protected static void |
saveAll() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowAnyModalityState, getRequiredModality, main, premain
protected ApplicationStarterBase(java.lang.String commandName, int... possibleArgumentsCount)
public java.lang.String getCommandName()
ApplicationStarter
"inspect"
if you'd like to start an app with "idea.exe inspect ..."
command).getCommandName
in interface ApplicationStarter
public boolean isHeadless()
ApplicationStarter
false
.isHeadless
in interface ApplicationStarter
public boolean canProcessExternalCommandLine()
ApplicationStarter
true
from this method and implement ApplicationStarter.processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String)
.canProcessExternalCommandLine
in interface ApplicationStarter
ApplicationStarter.processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String)
public java.util.concurrent.Future<CliResult> processExternalCommandLineAsync(java.util.List<java.lang.String> args, java.lang.String currentDirectory)
processExternalCommandLineAsync
in interface ApplicationStarter
ApplicationStarter.canProcessExternalCommandLine()
protected static void saveAll()
public abstract java.lang.String getUsageMessage()
protected abstract java.util.concurrent.Future<CliResult> processCommand(java.util.List<java.lang.String> args, java.lang.String currentDirectory) throws java.lang.Exception
java.lang.Exception
public void premain(java.util.List<java.lang.String> args)
ApplicationStarter
premain
in interface ApplicationStarter
args
- program arguments (including the selector)public void main(java.lang.String [] args)
main
in interface ApplicationStarter