public class DefaultEditorSettings extends AbstractEditorSettings
EditorSettings
.SHOW_MAIN_TOOLBAR_DEFAULT
Constructor and Description |
---|
DefaultEditorSettings()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.io.File |
getArchDirectoryDefault()
Returns the default archetype directory.
|
@NotNull java.lang.String |
getImageSetDefault()
Returns the default image set.
|
java.lang.String |
getKey(@NotNull EditorSettingsKey key,
@NotNull java.lang.String defaultValue)
Returns a settings value.
|
@NotNull java.io.File |
getMapsDirectoryDefault()
Returns the default maps directory.
|
@NotNull java.io.File |
getMediaDirectoryDefault()
Returns the default media directory.
|
@NotNull java.lang.String |
getUserNameDefault()
Returns the default user name.
|
boolean |
hasImageSet()
Returns whether an image set is used.
|
boolean |
hasMediaDirectory()
Returns whether a media directory is used.
|
boolean |
isShowMainToolbar()
Returns whether the main toolbar should be shown.
|
void |
setKey(@NotNull EditorSettingsKey key,
@NotNull java.lang.String value)
Saves a settings value.
|
void |
setShowMainToolbar(boolean selected)
Sets whether the main toolbar should be shown.
|
addEditorSettingsListener, fireShowMainToolbarChanged, removeEditorSettingsListener
@NotNull public @NotNull java.io.File getArchDirectoryDefault()
EditorSettings
@NotNull public @NotNull java.io.File getMapsDirectoryDefault()
EditorSettings
public boolean hasMediaDirectory()
EditorSettings
@NotNull public @NotNull java.io.File getMediaDirectoryDefault()
EditorSettings
public boolean hasImageSet()
EditorSettings
@NotNull public @NotNull java.lang.String getImageSetDefault()
EditorSettings
public boolean isShowMainToolbar()
EditorSettings
public void setShowMainToolbar(boolean selected)
EditorSettings
selected
- whether the main toolbar should be shown@NotNull public @NotNull java.lang.String getUserNameDefault()
EditorSettings
public java.lang.String getKey(@NotNull @NotNull EditorSettingsKey key, @NotNull @NotNull java.lang.String defaultValue)
EditorSettings
key
- the settings keydefaultValue
- the default value if the key is unsetpublic void setKey(@NotNull @NotNull EditorSettingsKey key, @NotNull @NotNull java.lang.String value)
EditorSettings
key
- the settings keyvalue
- the settings value