Interface EditorSettings

    • Field Detail

      • SHOW_MAIN_TOOLBAR_DEFAULT

        static final boolean SHOW_MAIN_TOOLBAR_DEFAULT
        Default value for whether the main window's toolbar is shown.
        See Also:
        Constant Field Values
    • Method Detail

      • getArchDirectoryDefault

        @NotNull
        @NotNull java.io.File getArchDirectoryDefault()
        Returns the default archetype directory.
        Returns:
        the default archetype directory
      • getMapsDirectoryDefault

        @NotNull
        @NotNull java.io.File getMapsDirectoryDefault()
        Returns the default maps directory.
        Returns:
        the default maps directory
      • hasMediaDirectory

        boolean hasMediaDirectory()
        Returns whether a media directory is used.
        Returns:
        whether a media directory is used
      • getMediaDirectoryDefault

        @NotNull
        @NotNull java.io.File getMediaDirectoryDefault()
        Returns the default media directory.
        Returns:
        the default media directory
      • hasImageSet

        boolean hasImageSet()
        Returns whether an image set is used.
        Returns:
        whether an image set is used
      • getImageSetDefault

        @NotNull
        @NotNull java.lang.String getImageSetDefault()
        Returns the default image set.
        Returns:
        the default image set
      • isShowMainToolbar

        boolean isShowMainToolbar()
        Returns whether the main toolbar should be shown.
        Returns:
        whether the main toolbar should be shown
      • setShowMainToolbar

        void setShowMainToolbar​(boolean selected)
        Sets whether the main toolbar should be shown.
        Parameters:
        selected - whether the main toolbar should be shown
      • getUserNameDefault

        @NotNull
        @NotNull java.lang.String getUserNameDefault()
        Returns the default user name.
        Returns:
        the default user name
      • getKey

        java.lang.String getKey​(@NotNull
                                @NotNull EditorSettingsKey key,
                                @NotNull
                                @NotNull java.lang.String defaultValue)
        Returns a settings value.
        Parameters:
        key - the settings key
        defaultValue - the default value if the key is unset
        Returns:
        the settings value
      • setKey

        void setKey​(@NotNull
                    @NotNull EditorSettingsKey key,
                    @NotNull
                    @NotNull java.lang.String value)
        Saves a settings value.
        Parameters:
        key - the settings key
        value - the settings value