|
From: Markus B. <mba...@us...> - 2005-09-07 21:24:31
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23392/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline Modified Files: RubyOutlineContentProvider.java Log Message: show jruby syntaxexeptions in outline view Index: RubyOutlineContentProvider.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/outline/RubyOutlineContentProvider.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RubyOutlineContentProvider.java 12 Mar 2005 15:32:32 -0000 1.7 --- RubyOutlineContentProvider.java 7 Sep 2005 21:24:24 -0000 1.8 *************** *** 11,14 **** --- 11,16 ---- import org.rubypeople.rdt.core.IType; import org.rubypeople.rdt.core.RubyModelException; + import org.rubypeople.rdt.internal.core.RubyScript; + import org.rubypeople.rdt.internal.core.RubyScriptElementInfo; import org.rubypeople.rdt.internal.ui.RubyPlugin; *************** *** 21,24 **** --- 23,37 ---- public Object[] getChildren(Object parent) { + if (parent instanceof RubyScript) { + try { + RubyScriptElementInfo elementInfo = (RubyScriptElementInfo) ((RubyScript) parent).getElementInfo() ; + if (elementInfo.getSyntaxException() != null) { + return new Object[] { elementInfo.getSyntaxException() } ; + } + } catch (RubyModelException ex) { + RubyPlugin.log(ex) ; + } + + } if (parent instanceof IParent) { IParent c= (IParent) parent; |