(String filelocation)
| 1117 | |
| 1118 | |
| 1119 | public void loadProject(String filelocation) { |
| 1120 | try { |
| 1121 | filename = filelocation; |
| 1122 | String proName = ((new File(filelocation)).getCanonicalPath()).substring |
| 1123 | (((new File(filelocation)).getCanonicalPath()).lastIndexOf(File.separator)+1); |
| 1124 | projectName = proName; |
| 1125 | surfex_.pane.setTitleAt(surfex_.pane.getSelectedIndex(), projectName); |
| 1126 | } catch(Exception ex) { |
| 1127 | System.out.println("Exception in loadProject:"+ex.toString()); |
| 1128 | } |
| 1129 | // System.out.println("file:"+filelocation); |
| 1130 | File fi = new File(filelocation); |
| 1131 | try { |
| 1132 | FileInputStream fs = new FileInputStream(fi); |
| 1133 | // System.out.println("input."); |
| 1134 | BufferedReader bs = new BufferedReader(new InputStreamReader(fs)); |
| 1135 | // System.out.println("stream"); |
| 1136 | // System.out.println("loadProject bs..."); |
| 1137 | loadProject(bs); |
| 1138 | // System.out.println("loaded."); |
| 1139 | } catch (Exception e) { |
| 1140 | System.out.println(e.toString()); |
| 1141 | } |
| 1142 | } |
| 1143 | |
| 1144 | public void loadProject(URL url) { |
| 1145 | try { |
no test coverage detected