- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
{
groupName.setText("Name: "+sg.getName());
groupName.setText("Edit name and description of current group.");
{
groupName.setText("Name: "+sg.getName());
groupName.setText("Edit name and description of current group.");
}
// Add a 'show all structures' for the current selection
Hashtable<String, PDBEntry> pdbe=new Hashtable<String,PDBEntry>();
}
// Add a 'show all structures' for the current selection
Hashtable<String, PDBEntry> pdbe=new Hashtable<String,PDBEntry>();
for (SequenceI sq: ap.av.getSequenceSelection())
{
Vector<PDBEntry> pes = (Vector<PDBEntry>) sq.getDatasetSequence().getPDBId();
for (SequenceI sq: ap.av.getSequenceSelection())
{
Vector<PDBEntry> pes = (Vector<PDBEntry>) sq.getDatasetSequence().getPDBId();
- structureMenu.add(gpdbview=new JMenuItem("View "+pdbe.size()+" structures."));
+ if (pdbe.size()==1)
+ {
+ structureMenu.add(gpdbview=new JMenuItem("View structure for "+sqass.getDisplayId(false)));
+ } else {
+ structureMenu.add(gpdbview=new JMenuItem("View all "+pdbe.size()+" structures."));
+ }
+ gpdbview.setToolTipText("Open a new Jmol view with all structures associated with the current selection and superimpose them using the alignment.");