Changeset 317 for trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc
- Timestamp:
- 02/15/06 18:31:48 (19 years ago)
- Location:
- trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java
r310 r317 61 61 import org.modelica.mdt.core.compiler.ModelicaParser; 62 62 import org.modelica.mdt.core.compiler.UnexpectedReplyException; 63 import org.modelica.mdt.internal.core.ElementLocation; 63 64 import org.modelica.mdt.internal.core.ErrorManager; 64 import org.modelica.mdt.omc.internal.ElementLocation;65 65 import org.modelica.mdt.omc.internal.ParseResults; 66 66 import org.modelica.mdt.omc.internal.OMCParser; … … 652 652 * The getCrefInfo reply have the following format: 653 653 * 654 * <file path>,< line number>,<column number>654 * <file path>,<something>,<start line>,<start column>,<end line>,<end column> 655 655 * 656 * for example: 657 * /foo/Modelica/package.mo,writable,1,1,1029,13 656 658 */ 657 659 … … 661 663 662 664 List tokens = ModelicaParser.parseList(retval); 663 int line; 665 666 String filePath = tokens.elementAt(0).toString(); 667 int startLine; 668 int startColumn; 669 int endLine; 670 int endColumn; 664 671 665 672 try 666 673 { 667 line = Integer.parseInt(tokens.elementAt(2).toString()); 674 startLine = Integer.parseInt(tokens.elementAt(2).toString()); 675 startColumn = Integer.parseInt(tokens.elementAt(3).toString()); 676 endLine = Integer.parseInt(tokens.elementAt(4).toString()); 677 endColumn = Integer.parseInt(tokens.elementAt(5).toString()); 668 678 } 669 679 catch (NumberFormatException e) 670 680 { 671 681 throw new 672 UnexpectedReplyException("can't parse getCrefInfo() reply, "+ 673 "unexpected format"); 674 } 675 676 return new ElementLocation(tokens.elementAt(0).toString(), line); 682 UnexpectedReplyException("can't parse getCrefInfo() reply, "+ 683 "unexpected format"); 684 } 685 686 return new ElementLocation(filePath, 687 startLine, startColumn, endLine, endColumn); 677 688 } 678 689
Note: See TracChangeset
for help on using the changeset viewer.