/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
* Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
+ System.getProperty("os.version"));
if (new Platform().isAMac())
{
- System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Jalview");
- System.setProperty("apple.laf.useScreenMenuBar", "true");
+ System.setProperty("com.apple.mrj.application.apple.menu.about.name",
+ "Jalview");
+ System.setProperty("apple.laf.useScreenMenuBar", "true");
}
ArgsParser aparser = new ArgsParser(args);
{
try
{
- String viprotocol = Jalview.checkProtocol(vamsasImport);
+ String viprotocol = jalview.io.AppletFormatAdapter.checkProtocol(vamsasImport);
if (viprotocol == jalview.io.FormatAdapter.FILE)
{
inSession = desktop.vamsasImport(new File(vamsasImport));
}
}
- protocol = checkProtocol(file);
+ protocol = jalview.io.AppletFormatAdapter.checkProtocol(file);
format = new jalview.io.IdentifyFile().Identify(file, protocol);
data = aparser.getValue("groups", true);
if (data != null)
{
- af.parseFeaturesFile(data, checkProtocol(data));
+ af.parseFeaturesFile(data, jalview.io.AppletFormatAdapter.checkProtocol(data));
System.out.println("Added " + data);
}
data = aparser.getValue("features", true);
if (data != null)
{
- af.parseFeaturesFile(data, checkProtocol(data));
+ af.parseFeaturesFile(data, jalview.io.AppletFormatAdapter.checkProtocol(data));
System.out.println("Added " + data);
}
data = aparser.getValue("annotations", true);
if (data != null)
{
- af.loadJalviewDataFile(data);
+ af.loadJalviewDataFile(data, null, null, null);
System.out.println("Added " + data);
}
// set or clear the sortbytree flag.
jalview.io.NewickFile fin = null;
try
{
- fin = new jalview.io.NewickFile(data, checkProtocol(data));
+ fin = new jalview.io.NewickFile(data, jalview.io.AppletFormatAdapter.checkProtocol(data));
if (fin != null)
{
af.getViewport().setCurrentTree(
ex.printStackTrace(System.err);
}
}
- // todo - load PDB structure to alignment
+ // TODO - load PDB structure(s) to alignment JAL-629
// (associate with identical sequence in alignment, or a specified
// sequence)
}
}
// and finally, turn off batch mode indicator - if the desktop still exists
- if (desktop!=null)
+ if (desktop != null)
{
desktop.setInBatchMode(false);
}
}
return ff;
}
-
- private static String checkProtocol(String file)
- {
- String protocol = jalview.io.FormatAdapter.FILE;
-
- if (file.indexOf("http:") > -1 || file.indexOf("file:") > -1)
- {
- protocol = jalview.io.FormatAdapter.URL;
- }
- return protocol;
- }
}
/**