/*
* When we finally deprecate 1.1 compatibility, we can start to use
* URLEncoder.encode(url,"UTF-8") and then we'll need this catch: catch
- * (UnsupportedEncodingException ex) { System.err.println("WARNING -
+ * (UnsupportedEncodingException ex) { jalview.bin.Console.errPrintln("WARNING -
* IMPLEMENTATION ERROR - UNSUPPORTED ENCODING EXCEPTION FOR "+url);
* ex.printStackTrace(); }
*/
url = viewport.applet.getCodeBase() + url;
} catch (UnsupportedEncodingException ex)
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"WARNING = IMPLEMENTATION ERROR - UNSUPPORTED ENCODING EXCEPTION FOR "
+ url);
ex.printStackTrace();
SequenceI[] oldOrder = viewport.getAlignment().getSequencesArray();
if (viewport.applet.debug)
{
- System.err.println("Sorting " + alorder.getOrder().size()
+ jalview.bin.Console.errPrintln("Sorting " + alorder.getOrder().size()
+ " in alignment '" + getTitle() + "'");
}
AlignmentSorter.sortBy(viewport.getAlignment(), alorder);
{
if (viewport.applet == null)
{
- System.out.println("Not running as applet - no browser available.");
+ jalview.bin.Console
+ .outPrintln("Not running as applet - no browser available.");
}
else
{
viewer = (Viewer) jmolviewer;
} catch (ClassCastException ex)
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"Unsupported viewer object :" + jmolviewer.getClass());
}
if (viewer == null)
{
- System.err.println("Can't use this object as a structure viewer:"
- + jmolviewer.getClass());
+ jalview.bin.Console
+ .errPrintln("Can't use this object as a structure viewer:"
+ + jmolviewer.getClass());
return null;
}
SequenceI[] seqs = null;
chains = (String[]) sqch[1];
if (seqs == null || seqs.length == 0)
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"JalviewLite.AlignFrame:newStructureView: No sequence to bind structure to.");
}
if (protocol == null)
}
if (protocol == null)
{
- System.err.println("Couldn't work out protocol to open structure: "
- + pdb.getId());
+ jalview.bin.Console
+ .errPrintln("Couldn't work out protocol to open structure: "
+ + pdb.getId());
return;
}
}
.setMapping(seqs, chains, pdb.getFile(), protocol,
null) == null)
{
- System.err.println("Failed to map " + pdb.getFile() + " ("
- + protocol + ") to any sequences");
+ jalview.bin.Console.errPrintln("Failed to map " + pdb.getFile()
+ + " (" + protocol + ") to any sequences");
}
return;
}
}
if (ajm != null)
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"Incremental adding and aligning structure to existing Jmol view not yet implemented.");
// try and add the pdb structure
// ajm.addS
SequenceI[][] seqs, String[][] chains, String[] protocols)
{
// TODO Auto-generated method stub
- System.err.println("Aligned Structure View: Not yet implemented.");
+ jalview.bin.Console
+ .errPrintln("Aligned Structure View: Not yet implemented.");
}
/**
if (!file.isValid())
{
// TODO: raise dialog for gui
- System.err.println("Problems parsing T-Coffee scores: "
+ jalview.bin.Console.errPrintln("Problems parsing T-Coffee scores: "
+ file.getWarningMessage());
- System.err.println("Origin was:\n" + source);
+ jalview.bin.Console.errPrintln("Origin was:\n" + source);
return false;
}
|| aln.getWidth() != file.getWidth()))
{
// TODO: raise a dialog box here rather than bomb out.
- System.err.println(
+ jalview.bin.Console.errPrintln(
"The scores matrix does not match the alignment dimensions");
}
}
else
{
- System.err.println("Problems resolving T-Coffee scores:");
+ jalview.bin.Console.errPrintln("Problems resolving T-Coffee scores:");
if (file.getWarningMessage() != null)
{
- System.err.println(file.getWarningMessage());
+ jalview.bin.Console.errPrintln(file.getWarningMessage());
}
}
return false;