-action.refresh_services = Refresh Services
+label.view_structureaction.refresh_services = Refresh Services
action.reset_services = Reset Services
action.merge_results = Merge Results
action.load_scheme = Load scheme
label.text_colour = Text Colour
label.structure = Structure
label.view_structure = View Structure
+label.view_protein_structure = View Protein Structure
+label.view_rna_structure = View Nucleotide Structure
label.clustalx_colours = Clustalx colours
label.above_identity_percentage = Above % Identity
label.create_sequence_details_report_annotation_for = Annotation for {0}
JMenu jMenu1 = new JMenu();
- JMenuItem structureMenu = new JMenuItem();
+ JMenuItem proteinStructureMenu = new JMenuItem();
- JMenu viewStructureMenu = new JMenu();
+ JMenu rnaStructureMenu = new JMenu();
JMenuItem editSequence = new JMenuItem();
makeReferenceSeq.setText("Mark as representative");
}
- if (seq.getDatasetSequence().getPDBId() != null
- && seq.getDatasetSequence().getPDBId().size() > 0)
+ if (ap.av.getAlignment().isNucleotide() == false)
{
- java.util.Enumeration e = seq.getDatasetSequence().getPDBId()
- .elements();
-
- while (e.hasMoreElements())
- {
- final PDBEntry pdb = (PDBEntry) e.nextElement();
-
- menuItem = new JMenuItem();
- menuItem.setText(pdb.getId());
- menuItem.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- // TODO re JAL-860: optionally open dialog or provide a menu entry
- // allowing user to open just one structure per sequence
- // new AppJmol(pdb, ap.av.collateForPDB(new PDBEntry[]
- // { pdb })[0], null, ap);
- new StructureViewer(ap.getStructureSelectionManager())
- .viewStructures(pdb,
- ap.av.collateForPDB(new PDBEntry[]
- { pdb })[0], null, ap);
- }
- });
- viewStructureMenu.add(menuItem);
-
- /*
- * menuItem = new JMenuItem(); menuItem.setText(pdb.getId());
- * menuItem.addActionListener(new java.awt.event.ActionListener() {
- * public void actionPerformed(ActionEvent e) {
- * colourByStructure(pdb.getId()); } });
- * colStructureMenu.add(menuItem);
- */
- }
- }
- else
- {
- if (ap.av.getAlignment().isNucleotide() == false)
- {
- structureMenu.remove(viewStructureMenu);
- }
+ remove(rnaStructureMenu);
}
+
if (ap.av.getAlignment().isNucleotide() == true)
{
AlignmentAnnotation[] aa = ap.av.getAlignment()
System.out.println("end");
}
});
- viewStructureMenu.add(menuItem);
+ rnaStructureMenu.add(menuItem);
}
}
ap);
}
});
- viewStructureMenu.add(menuItem);
+ rnaStructureMenu.add(menuItem);
}
}
}
if (seq == null)
{
sequenceMenu.setVisible(false);
- structureMenu.setVisible(false);
+ proteinStructureMenu.setVisible(false);
+ rnaStructureMenu.setVisible(false);
}
if (links != null && links.size() > 0)
}
});
jMenu1.setText(MessageManager.getString("label.group"));
- structureMenu.setText(MessageManager.getString("label.view_structure"));
- structureMenu.addActionListener(new ActionListener()
+ proteinStructureMenu.setText(MessageManager
+ .getString("label.view_protein_structure"));
+ proteinStructureMenu.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent actionEvent)
}
});
- viewStructureMenu.setText(MessageManager
- .getString("label.view_structure"));
+ rnaStructureMenu.setText(MessageManager
+ .getString("label.view_rna_structure"));
+
// colStructureMenu.setText("Colour By Structure");
editSequence.setText(MessageManager.getString("label.edit_sequence")
+ "...");
groupMenu.add(sequenceSelDetails);
add(groupMenu);
add(sequenceMenu);
- add(structureMenu);
+ add(rnaStructureMenu);
+ add(proteinStructureMenu);
if (sequence!=null)
{
add(hideInsertions);