X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=getdown%2Fsrc%2Fgetdown%2Flauncher%2Fsrc%2Fmain%2Fjava%2Fcom%2Fthreerings%2Fgetdown%2Flauncher%2FGetdown.java;h=66629f2e835ba8d6116ffb038df5b6b1010b2306;hb=7e207b38944654b23b1dffe17c50bee095573176;hp=e0f7c356a311a31f648e77fa02d215eb4cb96be2;hpb=46ba8ba2466d929d023295f38bc3572aef5467f1;p=jalview.git diff --git a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java index e0f7c35..66629f2 100644 --- a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -15,6 +15,7 @@ import java.awt.event.ActionEvent; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.File; +import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; @@ -1037,60 +1038,6 @@ public abstract class Getdown extends Thread } }; - public void setStartupFilesFromParameterString(String p) { - String q = "\""; - if (p != null && p.length() > 0) { - String[] filenames; - if (p.startsWith(q) && p.endsWith(q)) { - filenames = p.substring(1,p.length()-1).split("\" \""); - } else { - filenames = new String[]{p}; - } - for (int i = 0; i < filenames.length; i++) { - String filename = filenames[i]; - String ext = null; - int j = filename.lastIndexOf('.'); - if (j > -1) { - ext = filename.substring(j+1); - } - // jvp files etc - boolean addedStartupFile = false; // only add one startup file - if (_app.startupFileExtensions.contains(ext.toLowerCase()) && ! addedStartupFile) { - File f = new File(filename); - if (f.exists()) { - _app.addStartupFile(f); - addedStartupFile = true; - } - } - // jvl files - if (_app.locatorFileExtension.equals(ext.toLowerCase())) { - // Do something special with this here - File f = new File(filename); - if (f.exists()) { - String line = null; - try { - FileReader fr = new FileReader(f); - BufferedReader br = new BufferedReader(fr); - line = br.readLine(); - br.close(); - } catch(Exception e) { - log.warning("Something went wrong reading Jalview Version Locator file '"+filename+"'", e); - } - if (line != null) { - String urlString = line.trim(); - try { - URL newAppbase = new URL(urlString); - _app.newAppbase(newAppbase); - } catch(MalformedURLException e) { - log.warning("Java Version Locator url '"+urlString+"' found in file '"+filename+"' is malformed", e); - } - } - } - } - } - } - } - protected Application _app; protected Application.UpdateInterface _ifc = new Application.UpdateInterface(Config.EMPTY);