Hashtable gatherToThisFrame = new Hashtable();
+ String errorMessage = null;
+
try
{
//UNMARSHALLER SEEMS TO CLOSE JARINPUTSTREAM, MOST ANNOYING
}
while (jarentry != null);
}
+ catch(java.io.FileNotFoundException ex)
+ {
+ ex.printStackTrace();
+ errorMessage = "Couldn't locate Jalview XML file : "+file;
+ System.err.println("Exception whilst loading jalview XML file : " +
+ ex + "\n");
+ }
catch (java.net.UnknownHostException ex)
{
ex.printStackTrace();
- System.err.println("Couldn't locate Jalview XML file : " +
+ errorMessage = "Couldn't locate Jalview XML file : " +file;
+ System.err.println("Exception whilst loading jalview XML file : " +
ex + "\n");
-
- javax.swing.SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- JOptionPane.showInternalMessageDialog(Desktop.desktop,
- "Couldn't locate " + file,
- "URL not found",
- JOptionPane.WARNING_MESSAGE);
- }
- });
}
catch (Exception ex)
{
System.err.println("Exception whilst loading jalview XML file : " +
ex + "\n");
- javax.swing.SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
-
- JOptionPane.showInternalMessageDialog(Desktop.desktop,
- "Error loading " + file,
- "Error loading Jalview file",
- JOptionPane.WARNING_MESSAGE);
- }
- });
}
if (Desktop.instance != null)
(AlignFrame) en.nextElement());
}
+ if(errorMessage!=null)
+ {
+ final String finalErrorMessage = errorMessage;
+ javax.swing.SwingUtilities.invokeLater(new Runnable()
+ {
+ public void run()
+ {
+ JOptionPane.showInternalMessageDialog(Desktop.desktop,
+ finalErrorMessage,
+ "Error loading Jalview file",
+ JOptionPane.WARNING_MESSAGE);
+ }
+ });
+ }
+
return af;
}
String pdbFile = loadPDBFile(file, ids[p].getId());
- jalview.datamodel.SequenceI[] seq = new jalview.datamodel.SequenceI[]
+ jalview.datamodel.SequenceI[] seq = new jalview.datamodel.
+ SequenceI[]
{
- al.getSequenceAt(i)};
+ (jalview.datamodel.SequenceI)
+ seqRefIds.get(JSEQ[i].getId()+"")};
if (comp == null)