public boolean execute(PlugInContext context) throws Exception { reportNothingToUndoYet(context); layer = (Layer) context.getSelectedLayer(0); saveDatasetDialog.setLayer(layer); saveDatasetDialog.setVisible(true); return saveDatasetDialog.wasOKPressed(); }