Package org.gvsig.andami
Class Launcher
java.lang.Object
org.gvsig.andami.Launcher
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}]
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclassstatic classstatic classclassManages Andami termination process -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static AndamiConfigprotected static Stringprotected static Stringprotected static Stringprotected static final Stringprotected static HashMap<Class<? extends IExtension>, ExtensionDecorator> protected static final Stringprotected static List<IExtension> protected static MDIFrameprotected static org.gvsig.tools.exception.ListBaseExceptionprotected static Localeprotected static org.slf4j.Loggerprotected static final Stringprotected static Launcher.PluginsConfigprotected static Launcher.PluginsServicesprotected static Preferencesprotected static MultiSplashWindowprotected static Theme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidstatic voidGracefully closes the application.static voidcloseApplication(boolean quietly) voidprotected voiddownloadExtensions(String extDir) static AndamiConfigstatic StringGets Home Directory location of the application into users home folder.static StringReturn the directory applicaction is installed.static Filestatic Filestatic Stringstatic Argumentsstatic Stringstatic Extensionstatic IExtensiongetExtensionByName(String extensionName) static Iteratorstatic Stringstatic StringgetInformation(org.gvsig.installer.lib.api.PackageInfo[] pkgs) static Launcherstatic HashMapstatic PluginServicesgetPluginServices(String name) static Launcher.TerminationProcessstatic voidstatic voidstatic voidmanageUnsavedData(String prompt) static voidsetAppHomeDir(String appHomeDir) Sets Home Directory location of the application.
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
prefs
-
andamiConfig
-
splashWindow
-
appName
-
locale
-
pluginsConfig
-
pluginsServices
-
frame
-
classesExtensions
-
andamiConfigPath
-
nonWinDefaultLookAndFeel
- See Also:
-
DEFAULT_ICON_THEME_NAME
- See Also:
-
pluginsOrdered
-
extensions
-
appHomeDir
-
CASTORENCODING
- See Also:
-
launcherrors
protected static org.gvsig.tools.exception.ListBaseException launcherrors -
theme
-
-
Constructor Details
-
Launcher
public Launcher()
-
-
Method Details
-
getInstance
-
main
- Throws:
Exception
-
downloadExtensions
-
addError
-
addError
-
addError
-
getArguments
-
doMain
- Throws:
Exception
-
getApplicationName
-
getApplicationDirectory
Return the directory applicaction is installed. -
getApplicationFolder
-
getPluginMenuItems
-
getPluginServices
-
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
-
getExtensionIterator
-
getPluginConfig
-
getExtension
-
getAndamiConfig
-
getDefaultLookAndFeel
-
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
-
setAppHomeDir
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
- Throws:
Exception
-
getTerminationProcess
-
getInformation
-
getInformation
-