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, waitallowAnyModalityState, getRequiredModality, main, premainprotected 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 ApplicationStarterpublic boolean isHeadless()
ApplicationStarterfalse.isHeadless in interface ApplicationStarterpublic boolean canProcessExternalCommandLine()
ApplicationStartertrue from this method and implement ApplicationStarter.processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String).canProcessExternalCommandLine in interface ApplicationStarterApplicationStarter.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 ApplicationStarterApplicationStarter.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.Exceptionpublic void premain(java.util.List<java.lang.String> args)
ApplicationStarterpremain in interface ApplicationStarterargs - program arguments (including the selector)public void main(java.lang.String [] args)
main in interface ApplicationStarter