editSequence_actionPerformed(actionEvent);
}
});
- makeReferenceSeq.setText("Mark as representative");
+ makeReferenceSeq.setText(MessageManager
+ .getString("label.mark_as_representative"));
makeReferenceSeq.addActionListener(new ActionListener()
{
}
refresh();
}
-protected void makeReferenceSeq_actionPerformed(ActionEvent actionEvent)
-{
- if (!ap.av.getAlignment().hasSeqrep())
- {
- // initialise the display flags so the user sees something happen
- ap.av.setDisplayReferenceSeq(true);
- ap.av.setColourByReferenceSeq(true);
- ap.av.getAlignment().setSeqrep(sequence);
- }
- else
+
+ protected void makeReferenceSeq_actionPerformed(ActionEvent actionEvent)
{
- if (ap.av.getAlignment().getSeqrep() == sequence)
+ if (!ap.av.getAlignment().hasSeqrep())
{
- ap.av.getAlignment().setSeqrep(null);
+ // initialise the display flags so the user sees something happen
+ ap.av.setDisplayReferenceSeq(true);
+ ap.av.setColourByReferenceSeq(true);
+ ap.av.getAlignment().setSeqrep(sequence);
}
else
{
- ap.av.getAlignment().setSeqrep(sequence);
+ if (ap.av.getAlignment().getSeqrep() == sequence)
+ {
+ ap.av.getAlignment().setSeqrep(null);
+ }
+ else
+ {
+ ap.av.getAlignment().setSeqrep(sequence);
+ }
}
+ refresh();
}
- refresh();
-}
protected void hideInsertions_actionPerformed(ActionEvent actionEvent)
{