20 package net.sf.gridarta.action;
22 import java.awt.Component;
23 import javax.swing.Action;
35 import net.
sf.japi.swing.action.ActionMethod;
36 import net.
sf.japi.swing.prefs.PreferencesGroup;
37 import net.
sf.japi.swing.prefs.PreferencesPane;
38 import org.jetbrains.annotations.NotNull;
39 import org.jetbrains.annotations.Nullable;
80 public OptionsAction(@NotNull
final EditorFactory<G, A, R> editorFactory, @NotNull
final ProjectSettings projectSettings, @NotNull
final EditorSettings editorSettings, @NotNull
final DelegatingMapValidator<G, A, R> validators, @NotNull
final AppPreferencesModel appPreferencesModel, @NotNull
final ExitConnectorModel exitConnectorModel, @NotNull
final ConfigSourceFactory configSourceFactory, @NotNull
final Component parent) {
96 if (preferencesGroup == null) {
97 preferencesGroup = editorFactory.
createPreferencesGroup(projectSettings, editorSettings, validators, appPreferencesModel, exitConnectorModel, configSourceFactory);
99 PreferencesPane.showPreferencesDialog(parent, preferencesGroup,
false);
103 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
OptionsAction(@NotNull final EditorFactory< G, A, R > editorFactory, @NotNull final ProjectSettings projectSettings, @NotNull final EditorSettings editorSettings, @NotNull final DelegatingMapValidator< G, A, R > validators, @NotNull final AppPreferencesModel appPreferencesModel, @NotNull final ExitConnectorModel exitConnectorModel, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final Component parent)
Creates a new instance.
Graphical User Interface of Gridarta.
Settings that apply to a project.
This package contains the framework for validating maps.
final ExitConnectorModel exitConnectorModel
void options()
The action method for "options".
Maintains the application preferences state.
PreferencesGroup createPreferencesGroup(@NotNull ProjectSettings projectSettings, @NotNull EditorSettings editorSettings, @NotNull DelegatingMapValidator< G, A, R > validators, @NotNull AppPreferencesModel appPreferencesModel, @NotNull ExitConnectorModel exitConnectorModel, @NotNull ConfigSourceFactory configSourceFactory)
Creates a new PreferencesGroup instance.
Base package of all Gridarta classes.
final EditorSettings editorSettings
Reflects a game object (object on a map).
A factory for creating ConfigSources.
This package contains the preferences ui modules.
final ProjectSettings projectSettings
GameObjects are the objects based on Archetypes found on maps.
final EditorFactory< G, A, R > editorFactory
A Map Validator that delegates to other MapValidators.
Stores information needed by the exit connector.
final AppPreferencesModel appPreferencesModel
A factory to create editor-dependent objects.
PreferencesGroup preferencesGroup
The PreferencesGroup instance.
Settings that apply to the editor.
final DelegatingMapValidator< G, A, R > validators
Interface for MapArchObjects.
final ConfigSourceFactory configSourceFactory