[tiled] r746 - trunk/src/tiled/mapeditor
tiled-svn at biggeruniverse.com
tiled-svn at biggeruniverse.com
Mon Jun 9 09:03:46 PDT 2008
Author: bjorn
Date: 2008-06-09 11:03:45 -0500 (Mon, 09 Jun 2008)
New Revision: 746
Modified:
trunk/src/tiled/mapeditor/MapEditor.java
Log:
Fixed some event handler breakage.
Modified: trunk/src/tiled/mapeditor/MapEditor.java
===================================================================
--- trunk/src/tiled/mapeditor/MapEditor.java 2008-06-09 15:55:00 UTC (rev 745)
+++ trunk/src/tiled/mapeditor/MapEditor.java 2008-06-09 16:03:45 UTC (rev 746)
@@ -1308,13 +1308,12 @@
// if (currentMap != null) {
// tileInstancePropertiesDialog.setVisible(true);
// }
- //} else {
+ } else {
handleEvent(event);
}
}
- // TODO: Most if not all of the below should be moved into action objects,
- // TODO: and properly internationalized.
+ // TODO: Most if not all of the below should be moved into action objects
private void handleEvent(ActionEvent event) {
String command = event.getActionCommand();
@@ -1416,10 +1415,7 @@
SearchDialog sd = new SearchDialog(appFrame, currentMap);
sd.setVisible(true);
} else if (command.equals(Resources.getString("menu.help.about"))) {
- if (aboutDialog == null) {
- aboutDialog = new AboutDialog(appFrame);
- }
- aboutDialog.setVisible(true);
+ showAboutDialog();
} else if (command.equals(Resources.getString("menu.help.plugins"))) {
PluginDialog pluginDialog =
new PluginDialog(appFrame, pluginLoader);
@@ -1533,6 +1529,13 @@
tilesetsPanel.save();
}
+ private void showAboutDialog() {
+ if (aboutDialog == null) {
+ aboutDialog = new AboutDialog(appFrame);
+ }
+ aboutDialog.setVisible(true);
+ }
+
private class LayerTransformAction extends AbstractAction {
private final int transform;
public LayerTransformAction(int transform) {
More information about the tiled-commit
mailing list