MCPcopy Create free account
hub / github.com/Singular/Singular / loadProject

Method loadProject

Singular/LIB/surfex/Project.java:1119–1142  ·  view source on GitHub ↗
(String filelocation)

Source from the content-addressed store, hash-verified

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 {

Callers 1

loadMethod · 0.95

Calls 8

markMethod · 0.80
loadGeneralDataMethod · 0.80
loadEquationsMethod · 0.80
loadCurvesMethod · 0.80
loadSolitaryPointsMethod · 0.80
toStringMethod · 0.45
resetMethod · 0.45
loadParametersMethod · 0.45

Tested by

no test coverage detected