selectHMM.setText(MessageManager.getString("label.select_hmm"));
selectHMM.addActionListener(new ActionListener()
{
-
@Override
public void actionPerformed(ActionEvent e)
{
- selectHMM_actionPerformed(e);
+ selectHMM_actionPerformed(sequence);
}
});
add(selectHMM);
}
-
if (alignPanel.av.getSelectionGroup() != null
&& alignPanel.av.getSelectionGroup().getSize() > 1)
{
jMenu1.add(displayNonconserved);
}
-
- protected void selectHMM_actionPerformed(ActionEvent e)
+ protected void selectHMM_actionPerformed(SequenceI seq)
{
- SequenceI hmm = ap.av.getSequenceSelection()[0];
- ap.alignFrame.setSelectedHMMSequence(hmm);
+ // TODO move this to Viewport
+ if (seq.isHMMConsensusSequence())
+ {
+ ap.alignFrame.setSelectedHMMSequence(seq);
+ }
}
/**