Skip to content
Snippets Groups Projects
Commit 615a729b authored by tcarver's avatar tcarver
Browse files

add index reference listener in openBamView()

parent eac3e403
No related branches found
No related tags found
No related merge requests found
......@@ -3590,6 +3590,20 @@ public class BamView extends JPanel
{
feature_display.addDisplayAdjustmentListener(bamView);
feature_display.getSelection().addSelectionChangeListener(bamView);
if(feature_display.getEntryGroup().getSequenceEntry().getEMBLEntry().getSequence()
instanceof uk.ac.sanger.artemis.io.IndexFastaStream)
{
if(SwingUtilities.getWindowAncestor(feature_display) instanceof EntryEdit)
{
final EntryEdit ee = (EntryEdit)SwingUtilities.getWindowAncestor(feature_display);
ee.getOneLinePerEntryDisplay().addDisplayAdjustmentListener(bamView);
// add reference sequence selection listeners
ee.getEntryGroupDisplay().getIndexFastaCombo().addIndexReferenceListener(bamView.getCombo());
bamView.getCombo().addIndexReferenceListener(ee.getEntryGroupDisplay().getIndexFastaCombo());
}
}
}
}
......
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