Go to the documentation of this file.
20 package net.sf.gridarta.gui.scripts;
22 import java.awt.Frame;
23 import javax.swing.JList;
24 import javax.swing.JOptionPane;
32 import org.apache.log4j.Category;
33 import org.apache.log4j.Logger;
34 import org.jetbrains.annotations.NotNull;
103 for (
final G tmp : gameObject) {
105 if (eventCount == eventIndex) {
113 if (oldEvent ==
null) {
114 LOG.error(
"Error in modifyEventScript(): No event selected?");
122 case EVENT_EDIT_PATH:
127 if (JOptionPane.showConfirmDialog(panelList,
"Are you sure you want to remove this \"" +
scriptArchUtils.
typeName(event.getEventType()) +
"\" event which is\n" +
"linked to the script: '" + event.getScriptPath() +
"'?\n" +
"(The script file itself is not going to be deleted)",
"Confirm", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
final ScriptArchUtils scriptArchUtils
void modifyEventScript(final int eventIndex, final ScriptTask task, @NotNull final JList< String > panelList, @NotNull final MapManager<?, ?, ?> mapManager, @NotNull final Frame parent, @NotNull final Iterable< G > gameObject)
final ScriptedEventFactory< G, A, R > scriptedEventFactory
void editParameters(@NotNull final ScriptedEvent< G, A, R > scriptedEvent, @NotNull final Frame parent)
ScriptedEvent< G, A, R > newScriptedEvent(int eventType, @NotNull String pluginName, @NotNull String scriptPath, @NotNull String options)
static final Category LOG
final ScriptedEventEditor< G, A, R > scriptedEventEditor
void openScript(@NotNull final MapManager<?, ?, ?> mapManager, @NotNull final String scriptPath, @NotNull final Component parent)
ScriptArchDataUtils(final int eventTypeNo, @NotNull final ScriptArchUtils scriptArchUtils, @NotNull final ScriptedEventFactory< G, A, R > scriptedEventFactory, @NotNull final ScriptedEventEditor< G, A, R > scriptedEventEditor)
void addEventsToJList(@NotNull JList< String > list, @NotNull Iterable<? extends GameObject<?, ?, ?>> gameObject)
String typeName(int eventType)