Class Main

java.lang.Object
de.grogra.pf.boot.Main

public final class Main extends Object
  • Field Details

  • Method Details

    • getInstance

      public static Main getInstance()
    • main

      public static void main(String[] args)
    • exit

      public static void exit()
    • getLogger

      public static Logger getLogger()
    • logWarning

      public static void logWarning(Throwable thrown)
    • logSevere

      public static void logSevere(Throwable thrown)
    • setProperty

      public void setProperty(String name, String value)
    • getProperty

      public static String getProperty(String name)
    • getProperty

      public static String getProperty(String name, String defaultValue)
    • getPropertyFile

      public static PreferencesFile getPropertyFile()
    • getArgCount

      public static int getArgCount()
    • getArg

      public static String getArg(int index)
    • getVersion

      public static String getVersion()
    • usesProjectTree

      public static boolean usesProjectTree()
    • getRegistry

      public static Registry getRegistry()
    • isInitialized

      public static boolean isInitialized()
    • getI18NBundle

      public static I18NBundle getI18NBundle(String pluginId)
    • getI18NBundle

      public static I18NBundle getI18NBundle()
    • getFromResource

      public static Object getFromResource(String key)
    • getApplication

      public static Application getApplication()
    • getLoaderForAll

      public static ClassLoader getLoaderForAll()
    • getConfigurationDirectory

      public static File getConfigurationDirectory()
    • closeSplashScreen

      public static void closeSplashScreen()
    • error

      public static void error(String msg)
    • error

      public static void error(Throwable exception)
    • compare

      public static int compare(String v1, String v2)
      compares two strings containing version numbers and returns the result. 0 .. v1 equals v2 <0 .. v2 newer then v1 >0 .. v2 older then v1
      Parameters:
      v1 - this version number (version of the installed application)
      v2 - version to check (probably new version)
      Returns:
    • findPluginXML

      public Collection<Path> findPluginXML(File dir) throws IOException
      Throws:
      IOException
    • showMessage

      public static void showMessage(String msg, boolean exitOnClose)
    • getSystemPluginPath

      public static String getSystemPluginPath()