|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:38
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23417/src/org/rubypeople/rdt/internal/core Modified Files: RubyScriptElementInfo.java RubyScript.java Log Message: show jruby syntaxexeptions in outline view Index: RubyScriptElementInfo.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptElementInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RubyScriptElementInfo.java 2 Mar 2005 00:54:02 -0000 1.2 --- RubyScriptElementInfo.java 7 Sep 2005 21:24:29 -0000 1.3 *************** *** 13,16 **** --- 13,17 ---- import java.util.HashMap; + import org.jruby.lexer.yacc.SyntaxException; import org.rubypeople.rdt.core.IRubyElement; import org.rubypeople.rdt.core.ISourceRange; *************** *** 34,37 **** --- 35,40 ---- */ public HashMap annotationPositions; + + protected SyntaxException syntaxException = null ; public void addAnnotationPositions(IRubyElement handle, long[] positions) { *************** *** 62,64 **** --- 65,77 ---- this.sourceLength = newSourceLength; } + + public SyntaxException getSyntaxException() { + return syntaxException; + } + + public void setSyntaxException(SyntaxException syntaxException) { + this.syntaxException = syntaxException; + } + + } Index: RubyScript.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScript.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** RubyScript.java 30 Mar 2005 00:12:30 -0000 1.12 --- RubyScript.java 7 Sep 2005 21:24:29 -0000 1.13 *************** *** 119,122 **** --- 119,123 ---- } catch (SyntaxException e) { unitInfo.setIsStructureKnown(false); + unitInfo.setSyntaxException(e) ; } catch (Exception e) { RubyCore.log(e); |