Changeset 269 for trunk/org.modelica.mdt.omc/src/org/modelica/mdt
- Timestamp:
- 01/20/06 13:23:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java
r263 r269 85 85 /* indicates if the Modelica System Library has been loaded */ 86 86 private boolean systemLibraryLoaded = false; 87 88 private String[] standardLibraryPackages = { "Modelica" }; 87 89 88 90 /* should we trace the calls to sendExpression? */ … … 499 501 { 500 502 System.out.println("<< " + tokenizer.nextToken()); 501 }502 }503 504 /**505 * Loads in the Modelica System Library.506 * @throws ConnectException if we're unable to start communicating with507 * the server508 */509 public void loadSystemLibrary()510 throws ConnectException511 {512 if (!systemLibraryLoaded)513 {514 sendExpression("loadModel(Modelica)");515 systemLibraryLoaded = true;516 503 } 517 504 } … … 745 732 return "OpenModelica Compiler"; 746 733 } 734 735 /** 736 * Loads in the Modelica System Library and returns names of the top-level 737 * packages. 738 * 739 * @throws ConnectException if we're unable to start communicating with 740 * the server 741 */ 742 public String[] getStandardLibrary() throws ConnectException 743 { 744 if (!systemLibraryLoaded) 745 { 746 sendExpression("loadModel(Modelica)"); 747 systemLibraryLoaded = true; 748 } 749 750 return standardLibraryPackages; 751 } 747 752 }
Note: See TracChangeset
for help on using the changeset viewer.