// remove(tabbedPane);\r
getContentPane().add(alignPanel, BorderLayout.CENTER);\r
\r
- setGUINucleotide(al.isNucleotide());\r
+\r
\r
// tabbedPane.add(al.isNucleotide() ? "DNA":"Protein", alignPanel);\r
\r
}\r
});\r
\r
- if(Desktop.desktop!=null)\r
+\r
+ if (Desktop.desktop != null)\r
+ {\r
addServiceListeners();\r
+ setGUINucleotide(al.isNucleotide());\r
+ }\r
}\r
\r
/* Set up intrinsic listeners for dynamically generated GUI bits. */\r
// TODO: group services by location as well as function.\r
}\r
\r
- public void vamsasStore_actionPerformed(ActionEvent e)\r
+ /* public void vamsasStore_actionPerformed(ActionEvent e)\r
{\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.\r
getProperty("LAST_DIRECTORY"));\r
//vs.store(chooser.getSelectedFile().getAbsolutePath() );\r
vs.storeJalview( chooser.getSelectedFile().getAbsolutePath(), this);\r
}\r
- }\r
+ }*/\r
\r
public void featureSettings_actionPerformed(ActionEvent e)\r
{\r
}
}
- public void vamsasLoad_actionPerformed(ActionEvent e)
+ /* public void vamsasLoad_actionPerformed(ActionEvent e)
{
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.
getProperty("LAST_DIRECTORY"));
);
}
- }
+ }*/
public void inputSequence_actionPerformed(ActionEvent e)
\r
public void run()\r
{\r
+ String error = null;\r
StringBuffer result = new StringBuffer();\r
if (database.getSelectedItem().equals("Uniprot")\r
|| database.getSelectedItem().equals("EMBL")\r
}\r
}catch(Exception ex)// Problem parsing PDB file\r
{\r
- JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
- "Error retrieving "+textfield.getText()+" from "+database.getSelectedItem(),\r
- "Error Retrieving Data", JOptionPane.WARNING_MESSAGE);\r
+ error = "Error retrieving "+textfield.getText()+" from "+database.getSelectedItem();\r
}\r
}\r
\r
- if (result.length() > 0)\r
+ if (result.length() > 0 && error!=null)\r
{\r
String format = IdentifyFile.Identify(result.toString(), "Paste");\r
SequenceI[] sequences = null;\r
\r
}\r
else\r
- JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
- "Error retrieving "+textfield.getText()+" from "+database.getSelectedItem(),\r
- "Error Retrieving Data", JOptionPane.WARNING_MESSAGE);\r
+ error = "Error retrieving "+textfield.getText()+" from "+database.getSelectedItem();\r
+\r
+\r
\r
}\r
}\r
ok.setEnabled(true);\r
cancel.setEnabled(true);\r
frame.setTitle("Sequence Fetcher");\r
+\r
+ if(error!=null)\r
+ JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
+ error, "Error Retrieving Data", JOptionPane.WARNING_MESSAGE);\r
+\r
}\r
}\r
\r
\r
graphics = bi.getGraphics();\r
\r
- bi.setRGB(0,0, initialCol.getRGB());\r
+ if(initialCol!=null)\r
+ bi.setRGB(0,0, initialCol.getRGB());\r
\r
allGroups = av.alignment.findAllGroups(seq);\r
\r