}
} else if (command.equals(SAVE_AS_BUTTON)) {
JFileChooser ch = new ConfirmingFileChooser(map.getFilename());
MapHelper.addExtension(ch);
int ret = ch.showSaveDialog(this);
if (ret == JFileChooser.APPROVE_OPTION) {
String filename = ch.getSelectedFile().getAbsolutePath();
try {
MapHelper.saveTileset(set, filename);
set.setSource(filename);