com.intellij.openapi.application
Interface ApplicationStarter

All Known Implementing Classes:
DiffApplication

public interface ApplicationStarter

Implementors of this interface declared via com.intellij.ExtensionPoints.APPLICATION_STARTER contribute a command line application based on IDEA platform.


Method Summary
 java.lang.String getCommandName()
          Command line switch to start with this runner.
 void main(java.lang.String[] args)
          Called when application have been initialized.
 void premain(java.lang.String[] args)
          Called before application initialization.
 

Method Detail

getCommandName

@NonNls
java.lang.String getCommandName()
Command line switch to start with this runner. For example return "inspect" if you'd like to start app with idea.exe inspect cmdline.

Returns:
command line selector.

premain

void premain(java.lang.String[] args)
Called before application initialization. Invoked in awt dispatch thread.

Parameters:
args - cmdline arguments including declared selector. For example "idea.exe inspect myproject.ipr" will pass {"inspect", "myproject.ipr"}

main

void main(java.lang.String[] args)
Called when application have been initialized. Invoked in awt dispatch thread. An application starter should take care terminating JVM itself when appropriate by calling java.lang.System.exit(0);

Parameters:
args - cmdline arguments including declared selector. For example "idea.exe inspect myproject.ipr" will pass {"inspect", "myproject.ipr"}