- Timestamp:
- 01/26/06 15:36:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java
r277 r287 47 47 import java.io.IOException; 48 48 import java.util.StringTokenizer; 49 import java.util.Vector;50 49 51 50 import org.eclipse.core.resources.IFile; 52 51 import org.eclipse.core.runtime.Platform; 53 52 import org.modelica.mdt.core.IModelicaClass; 53 import org.modelica.mdt.core.List; 54 54 import org.modelica.mdt.core.compiler.ConnectException; 55 55 import org.modelica.mdt.core.compiler.IModelicaCompiler; … … 518 518 * @throws InitializationException 519 519 */ 520 public Vector<Object>getClassNames(String className)520 public List getClassNames(String className) 521 521 throws ConnectException, UnexpectedReplyException 522 522 { … … 584 584 String fullName = file.getLocation().toString(); 585 585 String retval = 586 sendExpression("loadFileInteractive (\"" + fullName + "\")");586 sendExpression("loadFileInteractiveQualified(\"" + fullName + "\")"); 587 587 588 588 /* … … 649 649 retval = "{" + retval + "}"; 650 650 651 Vector<Object>tokens = ModelicaParser.parseList(retval);651 List tokens = ModelicaParser.parseList(retval); 652 652 int line; 653 653 654 654 try 655 655 { 656 line = Integer.parseInt( (String)tokens.elementAt(1));656 line = Integer.parseInt(tokens.elementAt(1).toString()); 657 657 } 658 658 catch (NumberFormatException e) … … 663 663 } 664 664 665 return new ElementLocation( (String)tokens.elementAt(0), line);665 return new ElementLocation(tokens.elementAt(0).toString(), line); 666 666 } 667 667 … … 687 687 * @throws UnexpectedReplyException 688 688 */ 689 public Vector<Object>getElementsInfo(String className)689 public List getElementsInfo(String className) 690 690 throws ConnectException, InvocationError, UnexpectedReplyException 691 691 {
Note: See TracChangeset
for help on using the changeset viewer.