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

change ValidateViewer constructor

parent 5ff336b9
No related branches found
No related tags found
No related merge requests found
......@@ -150,9 +150,7 @@ public class FeaturePopup extends JPopupMenu
miValidate.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0)
{
final FeatureVector features = selection.getSelectedFeatures();
new ValidateViewer("Validation Report :: "+features.size()+
" feature(s)", false, false, true, getEntryGroup(), features);
new ValidateViewer(getEntryGroup(), selection.getSelectedFeatures());
}
});
maybeAdd(miValidate);
......
......@@ -44,14 +44,16 @@ class ValidateViewer extends FileViewer implements EntryGroupChangeListener
private static final long serialVersionUID = 1L;
private EntryGroup entryGrp;
public ValidateViewer(final String label,
final boolean visible,
final boolean showClearButton,
final boolean showSaveButton,
final EntryGroup entryGrp,
/**
* Viewer to display validation results
* @param entryGrp
* @param features
*/
public ValidateViewer(final EntryGroup entryGrp,
final FeatureVector features)
{
super(label, visible, showClearButton, showSaveButton);
super("Validation Report :: "+features.size()+
" feature(s)", false, false, true);
this.entryGrp = entryGrp;
update(features);
......
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