Class DefaultEditorSettings

    • Constructor Detail

      • DefaultEditorSettings

        public DefaultEditorSettings()
        Creates a new instance.
    • Method Detail

      • getArchDirectoryDefault

        @NotNull
        public @NotNull java.io.File getArchDirectoryDefault()
        Description copied from interface: EditorSettings
        Returns the default archetype directory.
        Returns:
        the default archetype directory
      • getMapsDirectoryDefault

        @NotNull
        public @NotNull java.io.File getMapsDirectoryDefault()
        Description copied from interface: EditorSettings
        Returns the default maps directory.
        Returns:
        the default maps directory
      • hasMediaDirectory

        public boolean hasMediaDirectory()
        Description copied from interface: EditorSettings
        Returns whether a media directory is used.
        Returns:
        whether a media directory is used
      • getMediaDirectoryDefault

        @NotNull
        public @NotNull java.io.File getMediaDirectoryDefault()
        Description copied from interface: EditorSettings
        Returns the default media directory.
        Returns:
        the default media directory
      • hasImageSet

        public boolean hasImageSet()
        Description copied from interface: EditorSettings
        Returns whether an image set is used.
        Returns:
        whether an image set is used
      • getImageSetDefault

        @NotNull
        public @NotNull java.lang.String getImageSetDefault()
        Description copied from interface: EditorSettings
        Returns the default image set.
        Returns:
        the default image set
      • isShowMainToolbar

        public boolean isShowMainToolbar()
        Description copied from interface: EditorSettings
        Returns whether the main toolbar should be shown.
        Returns:
        whether the main toolbar should be shown
      • setShowMainToolbar

        public void setShowMainToolbar​(boolean selected)
        Description copied from interface: EditorSettings
        Sets whether the main toolbar should be shown.
        Parameters:
        selected - whether the main toolbar should be shown
      • getUserNameDefault

        @NotNull
        public @NotNull java.lang.String getUserNameDefault()
        Description copied from interface: EditorSettings
        Returns the default user name.
        Returns:
        the default user name
      • getKey

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

        public void setKey​(@NotNull
                           @NotNull EditorSettingsKey key,
                           @NotNull
                           @NotNull java.lang.String value)
        Description copied from interface: EditorSettings
        Saves a settings value.
        Parameters:
        key - the settings key
        value - the settings value