Gridarta Editor
net.sf.gridarta.action.CollectSpellsAction Class Reference
+ Inheritance diagram for net.sf.gridarta.action.CollectSpellsAction:
+ Collaboration diagram for net.sf.gridarta.action.CollectSpellsAction:

Public Member Functions

void collectSpells ()
 The action method for "collectSpells". More...
 
 CollectSpellsAction (@Nullable final SpellsUtils spellsUtils, @NotNull final ProjectSettings projectSettings, @NotNull final Component parent)
 Creates a new instance. More...
 
void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 

Private Attributes

final Component parent
 
final ProjectSettings projectSettings
 
final SpellsUtils spellsUtils
 

Detailed Description

Author
Andreas Kirschbaum

Definition at line 34 of file CollectSpellsAction.java.

Constructor & Destructor Documentation

◆ CollectSpellsAction()

net.sf.gridarta.action.CollectSpellsAction.CollectSpellsAction ( @Nullable final SpellsUtils  spellsUtils,
@NotNull final ProjectSettings  projectSettings,
@NotNull final Component  parent 
)

Member Function Documentation

◆ collectSpells()

void net.sf.gridarta.action.CollectSpellsAction.collectSpells ( )

The action method for "collectSpells".

Opens the dialog to import spell definitions.

Definition at line 59 of file CollectSpellsAction.java.

References net.sf.gridarta.model.settings.ProjectSettings.getConfigurationDirectory(), net.sf.gridarta.gui.spells.SpellsUtils.importSpells(), and net.sf.gridarta.action.CollectSpellsAction.parent.

+ Here is the call graph for this function:

◆ setAction()

void net.sf.gridarta.action.CollectSpellsAction.setAction ( @NotNull final Action  action,
@NotNull final String  name 
)

Sets the Action instance for this editor action.

Parameters
actionthe action instance
namethe name of the action

Implements net.sf.gridarta.utils.EditorAction.

Definition at line 66 of file CollectSpellsAction.java.

Member Data Documentation

◆ parent

final Component net.sf.gridarta.action.CollectSpellsAction.parent
private

◆ projectSettings

final ProjectSettings net.sf.gridarta.action.CollectSpellsAction.projectSettings
private

◆ spellsUtils

final SpellsUtils net.sf.gridarta.action.CollectSpellsAction.spellsUtils
private

The documentation for this class was generated from the following file: