Class App

java.lang.Object
lu.kbra.modelizer_next.common.App

public class App extends Object
Application-wide constants, directories, mapper setup, and metadata used by the desktop client.
  • Field Details

    • JSON

      public static com.fasterxml.jackson.databind.JsonNode JSON
    • NAME

      public static String NAME
    • DESCRIPTION

      public static String DESCRIPTION
    • VERSION

      public static String VERSION
    • DISTRIBUTOR

      public static String DISTRIBUTOR
    • PORTABLE

      public static boolean PORTABLE
    • ISSUES_URL

      public static String ISSUES_URL
    • WEBSITE_URL

      public static String WEBSITE_URL
    • ENTRY_POINT

      public static String ENTRY_POINT
    • AUTHOR_WEBSITE_URL

      public static String AUTHOR_WEBSITE_URL
    • CONFIG

      public static AppConfig CONFIG
  • Constructor Details

    • App

      public App()
  • Method Details

    • ensureDirsExists

      public static void ensureDirsExists()
      Ensures that the dirs exists exists or is up to date.
    • getAppDirectory

      public static File getAppDirectory()
      Returns the application directory.
      Returns:
      the application directory
    • getConfigFile

      public static File getConfigFile()
      Returns the config file.
      Returns:
      the config file
    • getStylesDirectory

      public static File getStylesDirectory()
      Returns the styles directory.
      Returns:
      the styles directory
    • getUpdateDownloadsDirectory

      public static File getUpdateDownloadsDirectory()
      Returns the update downloads directory.
      Returns:
      the update downloads directory
    • init

      public static void init() throws com.fasterxml.jackson.core.JsonProcessingException
      Initializes shared state required before the object is used.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if the operation cannot be completed
    • loadConfig

      public static void loadConfig()
      Loads the config.
    • saveConfig

      public static void saveConfig()
      Saves the config.
    • title

      public static String title(String title)
      Builds the application window title from the app metadata.
      Parameters:
      title - title text to display
      Returns:
      the title result