Gridarta Editor
net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

An EditorAction that adds the current pre-selection to the selection. More...

+ Inheritance diagram for net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void addToSelection ()
 Adds the current pre-selection to the selection. More...
 
void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 

Protected Member Functions

void updateAction ()
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractSelectionAction< G, A, R >
boolean doSelection (final boolean performAction, @NotNull final SelectionMode mode)
 Executes an action for changing the selection. More...
 

Private Member Functions

boolean doAddToSelection (final boolean performAction)
 Executes the action. More...
 

Private Attributes

Action action
 The Action associated with this editor action. More...
 

Detailed Description

An EditorAction that adds the current pre-selection to the selection.

Author
Andreas Kirschbaum

Definition at line 37 of file AddToSelectionAction.java.

Member Function Documentation

◆ addToSelection()

void net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addToSelection ( )

Adds the current pre-selection to the selection.

Definition at line 56 of file AddToSelectionAction.java.

References net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddToSelection().

+ Here is the call graph for this function:

◆ doAddToSelection()

boolean net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddToSelection ( final boolean  performAction)
private

◆ setAction()

void net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction ( @NotNull final Action  action,
@NotNull final String  name 
)

◆ updateAction()

Member Data Documentation

◆ action


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