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

prompt if no features are selected

parent 15355f51
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,15 @@ public class FeaturePopup extends JPopupMenu ...@@ -150,7 +150,15 @@ public class FeaturePopup extends JPopupMenu
miValidate.addActionListener(new ActionListener(){ miValidate.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) public void actionPerformed(ActionEvent arg0)
{ {
new ValidateViewer(getEntryGroup(), selection.getSelectedFeatures()); if(selection.getAllFeatures().size() < 1)
{
JOptionPane.showMessageDialog(
owner.getParentFrame(),
"No features selected to validate.", "Select Features",
JOptionPane.INFORMATION_MESSAGE);
return;
}
new ValidateViewer(getEntryGroup(), selection.getAllFeatures());
} }
}); });
maybeAdd(miValidate); maybeAdd(miValidate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment