Changeset 310 for trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc
- Timestamp:
- 02/13/06 12:18:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java
r307 r310 46 46 import java.io.FileReader; 47 47 import java.io.IOException; 48 import java.util.Collection; 49 import java.util.LinkedList; 48 50 import java.util.StringTokenizer; 49 51 … … 52 54 import org.modelica.mdt.core.IModelicaClass; 53 55 import org.modelica.mdt.core.List; 56 import org.modelica.mdt.core.ListElement; 54 57 import org.modelica.mdt.core.compiler.ConnectException; 58 import org.modelica.mdt.core.compiler.ElementsInfo; 55 59 import org.modelica.mdt.core.compiler.IModelicaCompiler; 56 60 import org.modelica.mdt.core.compiler.InvocationError; … … 687 691 } 688 692 689 /** 690 * @param className 691 * @return 692 * @throws ConnectException 693 * @throws InvocationError 694 * @throws UnexpectedReplyException 695 */ 696 public List getElementsInfo(String className) 693 public Collection<ElementsInfo> getElementsInfo(String className) 697 694 throws ConnectException, InvocationError, UnexpectedReplyException 698 695 { … … 707 704 if (retval.charAt(i) == '{') 708 705 { 709 /* we found the begining of the list, let's hope for the best */ 710 return ModelicaParser.parseList(retval); 706 /* 707 * we found the begining of the list, send it to parser and 708 * hope for the best 709 */ 710 List parsedList = ModelicaParser.parseList(retval); 711 712 /* convert the parsedList to a collection of ElementsInfo:s */ 713 LinkedList<ElementsInfo> elementsInfo = 714 new LinkedList<ElementsInfo>(); 715 716 for (ListElement element : parsedList) 717 { 718 elementsInfo.add(new ElementsInfo((List)element)); 719 } 720 721 return elementsInfo; 711 722 } 712 723 else if (retval.charAt(i) == 'E' || retval.charAt(i) == 'e')
Note: See TracChangeset
for help on using the changeset viewer.