|
Gridarta Editor
|
An EditorAction that runs the archetype collection. More...
Inheritance diagram for net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | collectArches () |
| Runs the archetype collection. More... | |
| CollectArchesAction (@NotNull final ProjectSettings projectSettings, @NotNull final AbstractResources< G, A, R > resources, @NotNull final Exiter exiter, @NotNull final JFrame 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 Member Functions | |
| boolean | doCollectArches (final boolean performAction) |
| Executes the "collect arches" action. More... | |
| ExiterListener | newExiterListener () |
| Creates a new ExiterListener that delays application exit until archetype collection has finished. More... | |
| void | updateAction () |
| Updates the action's enabled state. More... | |
Private Attributes | |
| Action | action |
| The action associated with this editor action. More... | |
| volatile Collector | collector |
| The Collector if an archetype collection is running, or else. More... | |
| final JFrame | parent |
| The parent component for dialog windows. More... | |
| final ProjectSettings | projectSettings |
| The project settings instance. More... | |
| final AbstractResources< G, A, R > | resources |
| The AbstractResources to collect. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| Action Builder to create Actions. More... | |
| static final Category | LOG = Logger.getLogger(CollectArchesAction.class) |
| The Logger for printing log messages. More... | |
An EditorAction that runs the archetype collection.
Definition at line 50 of file CollectArchesAction.java.
| net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.CollectArchesAction | ( | @NotNull final ProjectSettings | projectSettings, |
| @NotNull final AbstractResources< G, A, R > | resources, | ||
| @NotNull final Exiter | exiter, | ||
| @NotNull final JFrame | parent | ||
| ) |
Creates a new instance.
| projectSettings | the project settings instance |
| resources | the resources to collect |
| exiter | the exiter instance |
| parent | the parent component for dialog windows |
Definition at line 103 of file CollectArchesAction.java.
References net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newExiterListener(), net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent, net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.projectSettings, and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.resources.
Here is the call graph for this function:| void net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectArches | ( | ) |
Runs the archetype collection.
Definition at line 114 of file CollectArchesAction.java.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Executes the "collect arches" action.
| performAction | whether the action should be performed |
Definition at line 128 of file CollectArchesAction.java.
References net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.canWriteCollected(), net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectArches(), net.sf.gridarta.model.settings.ProjectSettings.getCollectedDirectory(), net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.commands.Collector.start(), and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
Referenced by net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectArches(), and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Creates a new ExiterListener that delays application exit until archetype collection has finished.
Definition at line 188 of file CollectArchesAction.java.
References net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collector, and net.sf.gridarta.commands.Collector.waitUntilFinished().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.CollectArchesAction< 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 | ||
| ) |
Sets the Action instance for this editor action.
| action | the action instance |
| name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 119 of file CollectArchesAction.java.
|
private |
Updates the action's enabled state.
Definition at line 175 of file CollectArchesAction.java.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The action associated with this editor action.
Set to
if no action is associated.
Definition at line 94 of file CollectArchesAction.java.
|
staticprivate |
Action Builder to create Actions.
Definition at line 56 of file CollectArchesAction.java.
|
private |
The Collector if an archetype collection is running, or else.
.
Definition at line 87 of file CollectArchesAction.java.
|
staticprivate |
The Logger for printing log messages.
Definition at line 62 of file CollectArchesAction.java.
|
private |
The parent component for dialog windows.
Definition at line 80 of file CollectArchesAction.java.
|
private |
The project settings instance.
Definition at line 68 of file CollectArchesAction.java.
|
private |
The AbstractResources to collect.
Definition at line 74 of file CollectArchesAction.java.