Class Launcher

java.lang.Object
org.gvsig.andami.Launcher

public class Launcher extends Object

Andami's launching class. This is the class used to create the Andami's plugin environment.

Syntax:
java [-Xmx512M (for 512MB of RAM)] [-classpath={a colon-separated(unix) or semicolon-separated(windows) list of files containg base library of classes}] [-Djava.library.path=PATH_TO_NATIVE_LIBRARIES] PATH_TO_APPLICATION_HOME_DIRECTORY PATH_TO_APPLICATION_PLUGINS_DIRECTORY [{list of additional custom application arguments separated by spaces}]

  • Field Details

  • Constructor Details

    • Launcher

      public Launcher()
  • Method Details

    • getInstance

      public static Launcher getInstance()
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • downloadExtensions

      protected void downloadExtensions(String extDir)
    • addError

      protected void addError(Throwable ex)
    • addError

      protected void addError(String msg, Throwable cause)
    • addError

      protected void addError(String msg)
    • getArguments

      public static Arguments getArguments()
    • doMain

      public void doMain(String[] args) throws Exception
      Throws:
      Exception
    • getApplicationName

      public static String getApplicationName()
    • getApplicationDirectory

      public static String getApplicationDirectory()
      Return the directory applicaction is installed.
    • getApplicationFolder

      public static File getApplicationFolder()
    • getPluginMenuItems

      public List<Launcher.PluginMenuItem> getPluginMenuItems()
    • getPluginServices

      public static PluginServices getPluginServices(String name)
    • closeApplication

      public static void closeApplication()
      Gracefully closes the application. It shows dialogs to save data, finish processes, etc, then it terminates the extensions, removes temporal files and finally exits.
    • closeApplication

      public static void closeApplication(boolean quietly)
    • getExtensionByName

      public static IExtension getExtensionByName(String extensionName)
    • getExtensionIterator

      public static Iterator getExtensionIterator()
    • getPluginConfig

      public static HashMap getPluginConfig()
    • getExtension

      public static Extension getExtension(String s)
    • getAndamiConfig

      public static AndamiConfig getAndamiConfig()
    • getDefaultLookAndFeel

      public static String getDefaultLookAndFeel()
    • getAppHomeDir

      public static String getAppHomeDir()
      Gets Home Directory location of the application into users home folder. May be set from outside the aplication by means of -DgvSIG.home=C:/data/gvSIG, where gvSIG its the name of the application
      Returns:
    • getApplicationHomeFolder

      public static File getApplicationHomeFolder()
    • setAppHomeDir

      public static void setAppHomeDir(String appHomeDir)
      Sets Home Directory location of the application. May be set from outside the aplication by means of -DgvSIG.home=C:/data/gvSIG, where gvSIG its the name of the application
      Parameters:
      appHomeDir -
    • initIconThemes

      public static void initIconThemes()
    • manageUnsavedData

      public static void manageUnsavedData(String prompt) throws Exception
      Throws:
      Exception
    • getTerminationProcess

      public static Launcher.TerminationProcess getTerminationProcess()
    • getInformation

      public static String getInformation()
    • getInformation

      public static String getInformation(org.gvsig.installer.lib.api.PackageInfo[] pkgs)