} catch (LayerLockedException e) {
JOptionPane.showMessageDialog(this, Resources.getString("action.tileset.remove.error.layer-locked.message"),
Resources.getString("action.tileset.remove.error.title"), JOptionPane.ERROR_MESSAGE);
}
} 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);
embedButton.setEnabled(true);
saveButton.setEnabled(true);