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

Method load

Singular/LIB/surfex/surfex.java:510–550  ·  view source on GitHub ↗
(String filelocation)

Source from the content-addressed store, hash-verified

508 }
509
510 public void load(String filelocation) {
511// System.out.println("load 1:"+filelocation);
512 if(cygwin==1) {
513 filelocation = toWindows(filelocation);
514 }
515 Project project;
516 try {
517// String proName = ((new File(filelocation)).getCanonicalPath()).substring
518// (((new File(filelocation)).getCanonicalPath()).lastIndexOf(File.separator)+1);
519// System.out.println("proName:"+proName);
520
521// project = new Project(this, jv4sx, ++projectCounter,
522// proName);
523// System.out.println("loadProject...");
524// project.loadProject(filelocation);
525// openProjects.add(project);
526// pane.add(project, proName);
527// pane.setSelectedIndex(pane.getTabCount() - 1);
528// System.out.println("tabChanged...");
529// tabChanged();
530// System.out.println("raytrace...");
531
532// System.out.println("load project...");
533 if(initFlag) {
534 project = getCurrentProject();
535 project.loadProject(filelocation);
536 } else {
537 if(clearCurProj()==0) {
538 project = getCurrentProject();
539 project.loadProject(filelocation);
540 }
541 }
542
543// tabChanged();
544
545 surfex_.raytrace();
546 } catch(Exception ex) {
547 }
548 // datei einlesen und project aufbauen
549
550 }
551
552 public void load(BufferedReader bs) {
553// System.out.println("load 2");

Callers 4

actionPerformedMethod · 0.95
useCommandsMethod · 0.95
create_tableFunction · 0.80
loadAndDisplayMethod · 0.80

Calls 7

toWindowsMethod · 0.95
getCurrentProjectMethod · 0.95
loadProjectMethod · 0.95
clearCurProjMethod · 0.95
tabChangedMethod · 0.95
raytraceMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected