20 package net.sf.gridarta.gui.dialog.plugin;
22 import java.awt.Component;
23 import javax.swing.Action;
31 import net.
sf.japi.swing.action.ActionMethod;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
47 private final Object
sync =
new Object();
72 public PluginManagerFactory(@NotNull
final Component parent, @NotNull
final PluginController<G, A, R> pluginController, @NotNull
final PluginModel<G, A, R> pluginModel, @NotNull
final PluginParameterViewFactory<G, A, R> pluginParameterViewFactory, @NotNull
final ResourceIcons resourceIcons) {
83 if (pluginManager == null) {
92 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
final Component parent
The parent Component to center the editor window on.
Graphical User Interface of Gridarta.
final PluginModel< G, A, R > pluginModel
final PluginController< G, A, R > pluginController
Base package of all Gridarta classes.
Reflects a game object (object on a map).
final PluginParameterViewFactory< G, A, R > pluginParameterViewFactory
GameObjects are the objects based on Archetypes found on maps.
final ResourceIcons resourceIcons
The ResourceIcons for creating icons.
void show()
Shows the plugin manager window.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
PluginManagerFactory(@NotNull final Component parent, @NotNull final PluginController< G, A, R > pluginController, @NotNull final PluginModel< G, A, R > pluginModel, @NotNull final PluginParameterViewFactory< G, A, R > pluginParameterViewFactory, @NotNull final ResourceIcons resourceIcons)
Creates a new instance.
final Object sync
The synchronization object.
Creates ImageIcon instances from resources.
PluginManager< G, A, R > pluginManager
Factory for creating PluginParameterView instances.
Interface for MapArchObjects.