Skip to content
Snippets Groups Projects
Commit d9921e9d authored by tcarver's avatar tcarver
Browse files

validate all features if none are selected

parent 59a27006
No related branches found
No related tags found
No related merge requests found
......@@ -150,15 +150,18 @@ public class FeaturePopup extends JPopupMenu
miValidate.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0)
{
FeatureVector features = null;
if(selection.getAllFeatures().size() < 1)
{
JOptionPane.showMessageDialog(
owner.getParentFrame(),
"No features selected to validate.", "Select Features",
JOptionPane.INFORMATION_MESSAGE);
int status = JOptionPane.showConfirmDialog(owner.getParentFrame(),
"No features selected. Validate all features.", "Select Features",
JOptionPane.OK_CANCEL_OPTION);
if(status == JOptionPane.CANCEL_OPTION)
return;
}
new ValidateViewer(getEntryGroup(), selection.getAllFeatures());
else
features = selection.getAllFeatures();
new ValidateViewer(getEntryGroup(), features);
}
});
maybeAdd(miValidate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment