import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import jalview.gui.ColourMenuHelper.ColourChangeListener;
+import jalview.hmmer.HMMAlignThread;
import jalview.hmmer.HMMBuildThread;
import jalview.io.FileFormatI;
import jalview.io.FileFormats;
}
});
add(selectHMM);
+
+ JMenuItem hmmAlign = new JCheckBoxMenuItem();
+ hmmAlign.setText(MessageManager.getString("label.hmmalign"));
+ hmmAlign.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmAlign_actionPerformed(e);
+ }
+ });
+ add(hmmAlign);
}
if (ap.av.getSelectionGroup() != null
ap.av.setSelectedHMM(hmm);
}
+ protected void hmmAlign_actionPerformed(ActionEvent e)
+ {
+ ap.av.setSelectedHMM(this.sequence.getHMM());
+ new Thread(new HMMAlignThread(ap.alignFrame, true)).start();
+ ap.repaint();
+ }
+
/**
* Constructs the entries for the colour menu
*/