: MessageManager.formatMessage("label.amend_delete_features",
new String[] { sequences.get(0).getName() });
+ /*
+ * show the dialog
+ */
int reply = JvOptionPane.showInternalOptionDialog(Desktop.desktop,
mainPanel, title, JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.QUESTION_MESSAGE, null, options,
if (reply == JvOptionPane.NO_OPTION)
{
+ /*
+ * NO_OPTION corresponds to the Delete button
+ */
sequences.get(0).getDatasetSequence().deleteFeature(sf);
}
else if (reply == JvOptionPane.YES_OPTION)
{
+ /*
+ * YES_OPTION corresponds to the Amend button
+ */
+ boolean typeChanged = !lastFeatureAdded.equals(sf.type);
sf.type = lastFeatureAdded;
sf.featureGroup = lastFeatureGroupAdded;
sf.description = lastDescriptionAdded;
}
ffile.parseDescriptionHTML(sf, false);
+ if (typeChanged)
+ {
+ findAllFeatures();
+ }
}
}
else