showDbRefsMenuitem.setSelected(av.isShowDbRefs());
autoCalculate.setSelected(av.autoCalculateConsensus);
sortByTree.setSelected(av.sortByTree);
-
+ listenToViewSelections.setSelected(av.followSelection);
+
setShowProductsEnabled();
updateEditMenuBar();
viewport.sortByTree = sortByTree.isSelected();
}
+ @Override
+ protected void listenToViewSelections_actionPerformed(ActionEvent e)
+ {
+ viewport.followSelection = listenToViewSelections.isSelected();
+ }
/**
* DOCUMENT ME!
*
protected JCheckBoxMenuItem sortByTree = new JCheckBoxMenuItem();
+ protected JCheckBoxMenuItem listenToViewSelections = new JCheckBoxMenuItem();
+
JMenu addSequenceMenu = new JMenu();
JMenuItem addFromFile = new JMenuItem();
sortByTreeOption_actionPerformed(e);
}
});
-
+
+ listenToViewSelections.setText("Listen for selections");
+ listenToViewSelections.setToolTipText("<html>When selected, selections in this view will mirror<br>selections made on the same sequences in other views.");
+ listenToViewSelections.setState(false);
+ listenToViewSelections.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ listenToViewSelections_actionPerformed(e);
+ }
+ });
+
addSequenceMenu.setText("Add Sequences");
addFromFile.setText("From File");
addFromFile.addActionListener(new ActionListener()
selectMenu.add(invertColSel);
selectMenu.add(deleteGroups);
selectMenu.add(grpsFromSelection);
+ // TODO - determine if the listenToViewSelections button is needed : see bug JAL-754
+ //selectMenu.addSeparator();
+ //selectMenu.add(listenToViewSelections);
+ }
+
+ protected void listenToViewSelections_actionPerformed(ActionEvent e)
+ {
+ // TODO Auto-generated method stub
+
}
protected void showAllhidden_actionPerformed(ActionEvent e)