(String filelocation)
| 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"); |
no test coverage detected