public interface ApplicationStarter
Modifier and Type | Field and Description |
---|---|
static int |
ANY_MODALITY |
static ExtensionPointName<ApplicationStarter> |
EP_NAME |
static int |
NON_MODAL |
static int |
NOT_IN_EDT |
Modifier and Type | Method and Description |
---|---|
default boolean |
allowAnyModalityState()
Deprecated.
|
default boolean |
canProcessExternalCommandLine()
Applications that are capable of processing command-line arguments within a running IDE instance
should return
true from this method and implement processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String) . |
java.lang.String |
getCommandName()
Command-line switch to start with this runner.
|
default int |
getRequiredModality()
If true, the command of this launcher can be processed when there is a modal dialog open.
|
default boolean |
isHeadless()
Applications that are incapable of working in a headless mode should override the method and return
false . |
default void |
main(java.util.List<java.lang.String> args)
Called when application has been initialized.
|
default void |
main(java.lang.String [] args)
Deprecated.
Use
main(List) |
default void |
premain(java.util.List<java.lang.String> args)
Called before application initialization.
|
default void |
premain(java.lang.String [] args)
Deprecated.
Use
premain(List) |
default java.util.concurrent.Future<CliResult> |
processExternalCommandLineAsync(java.util.List<java.lang.String> args,
java.lang.String currentDirectory) |
static final ExtensionPointName<ApplicationStarter> EP_NAME
static final int NON_MODAL
static final int ANY_MODALITY
static final int NOT_IN_EDT
java.lang.String getCommandName()
"inspect"
if you'd like to start an app with "idea.exe inspect ..."
command).@Deprecated default void premain(java.lang.String [] args)
premain(List)
default void premain(java.util.List<java.lang.String> args)
args
- program arguments (including the selector)@Deprecated default void main(java.lang.String [] args)
main(List)
default void main(java.util.List<java.lang.String> args)
Called when application has been initialized. Invoked in event dispatch thread.
An application starter should take care of terminating JVM when appropriate by calling System.exit(int)
.
args
- program arguments (including the selector)default boolean isHeadless()
false
.default boolean canProcessExternalCommandLine()
true
from this method and implement processExternalCommandLineAsync(java.util.List<java.lang.String>, java.lang.String)
.default int getRequiredModality()
TransactionGuard
).@Deprecated default boolean allowAnyModalityState()
getRequiredModality()
.default java.util.concurrent.Future<CliResult> processExternalCommandLineAsync(java.util.List<java.lang.String> args, java.lang.String currentDirectory)
canProcessExternalCommandLine()