diff --git a/uk/ac/sanger/artemis/components/FeaturePopup.java b/uk/ac/sanger/artemis/components/FeaturePopup.java
index c26e37d0b1fd789fad42199ec9764a6f28024def..d48bf8ba84347f923ecf2c9c55985e6228c01641 100644
--- a/uk/ac/sanger/artemis/components/FeaturePopup.java
+++ b/uk/ac/sanger/artemis/components/FeaturePopup.java
@@ -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);
diff --git a/uk/ac/sanger/artemis/components/ValidateViewer.java b/uk/ac/sanger/artemis/components/ValidateViewer.java
index 174e3158573e0f3be19050b5554e353fa0628c4b..04afa9efdbfdd0dbe619268dd2fcd4ed76fe4372 100644
--- a/uk/ac/sanger/artemis/components/ValidateViewer.java
+++ b/uk/ac/sanger/artemis/components/ValidateViewer.java
@@ -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);