Gridarta Editor
ShortcutsAction.java
Go to the documentation of this file.
1
/*
2
* Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3
* Copyright (C) 2000-2023 The Gridarta Developers.
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
package
net.sf.gridarta.action;
21
22
import
java.awt.Component;
23
import
javax.swing.Action;
24
import
net
.
sf
.
gridarta
.
gui
.
dialog
.
shortcuts
.
ShortcutsManager
;
25
import
net
.
sf
.
gridarta
.
utils
.
EditorAction
;
26
import
net
.
sf
.japi.swing.action.ActionMethod;
27
import
org.jetbrains.annotations.NotNull;
28
32
public
class
ShortcutsAction
implements
EditorAction
{
33
34
@NotNull
35
private
final
ShortcutsManager
shortcutsManager
;
36
37
@NotNull
38
private
final
Component
parent
;
39
43
public
ShortcutsAction
(@NotNull
final
ShortcutsManager
shortcutsManager
, @NotNull
final
Component
parent
) {
44
this.shortcutsManager =
shortcutsManager
;
45
this.parent =
parent
;
46
}
47
52
@ActionMethod
53
public
void
shortcuts
() {
54
shortcutsManager
.
showShortcutsDialog
(
parent
);
55
}
56
57
@Override
58
public
void
setAction
(@NotNull
final
Action action, @NotNull
final
String
name
) {
59
}
60
61
}
name
name
Definition:
ArchetypeTypeSetParserTest-ignoreDefaultAttribute1-result.txt:2
net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager
Manager for shortcuts of all Actions in an {} instance.
Definition:
ShortcutsManager.java:50
net.sf.gridarta
Base package of all Gridarta classes.
net.sf.gridarta.action.ShortcutsAction.shortcuts
void shortcuts()
The action method for "shortcuts".
Definition:
ShortcutsAction.java:53
net.sf
net.sf.gridarta.action.ShortcutsAction.setAction
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Definition:
ShortcutsAction.java:58
net.sf.gridarta.action.ShortcutsAction
Definition:
ShortcutsAction.java:32
net.sf.gridarta.action.ShortcutsAction.ShortcutsAction
ShortcutsAction(@NotNull final ShortcutsManager shortcutsManager, @NotNull final Component parent)
Creates a new instance.
Definition:
ShortcutsAction.java:43
net.sf.gridarta.gui.dialog.shortcuts
Definition:
KeyStrokeDialog.java:20
net.sf.gridarta.gui
Graphical User Interface of Gridarta.
net
net.sf.gridarta.action.ShortcutsAction.shortcutsManager
final ShortcutsManager shortcutsManager
Definition:
ShortcutsAction.java:35
net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager.showShortcutsDialog
void showShortcutsDialog(@NotNull final Component parentComponent)
Displays a dialog to edit shortcuts.
Definition:
ShortcutsManager.java:215
net.sf.gridarta.gui.dialog
net.sf.gridarta.action.ShortcutsAction.parent
final Component parent
Definition:
ShortcutsAction.java:38
net.sf.gridarta.utils.EditorAction
A global editor action.
Definition:
EditorAction.java:29
net.sf.gridarta.utils
Definition:
ActionBuilderUtils.java:20
src
gridarta
src
main
java
net
sf
gridarta
action
ShortcutsAction.java
Generated on Mon Sep 1 2025 00:35:53 for Gridarta Editor by
1.8.17