|
From: <caw...@us...> - 2007-08-22 21:11:20
|
Revision: 3050
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3050&view=rev
Author: cawilliams
Date: 2007-08-22 14:11:19 -0700 (Wed, 22 Aug 2007)
Log Message:
-----------
update to latest JRuby. Also fix ITypeHierarchy interface to refer to modules and not interfaces
Modified Paths:
--------------
trunk/org.rubypeople.rdt.astviewer/src/org/rubypeople/rdt/astviewer/views/ViewContentProvider.java
Modified: trunk/org.rubypeople.rdt.astviewer/src/org/rubypeople/rdt/astviewer/views/ViewContentProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.astviewer/src/org/rubypeople/rdt/astviewer/views/ViewContentProvider.java 2007-08-22 21:11:14 UTC (rev 3049)
+++ trunk/org.rubypeople.rdt.astviewer/src/org/rubypeople/rdt/astviewer/views/ViewContentProvider.java 2007-08-22 21:11:19 UTC (rev 3050)
@@ -48,7 +48,7 @@
import org.jruby.common.NullWarnings;
import org.jruby.lexer.yacc.LexerSource;
import org.jruby.parser.DefaultRubyParser;
-import org.jruby.parser.RubyParserConfiguration;
+import org.jruby.parser.ParserConfiguration;
import org.jruby.parser.RubyParserPool;
import org.rubypeople.rdt.astviewer.Activator;
import org.rubypeople.rdt.internal.ui.rubyeditor.RubyEditor;
@@ -120,8 +120,9 @@
public Node getRootNode() {
LexerSource lexerSource;
try {
- lexerSource = new LexerSource(getName(), new InputStreamReader(getContents()), 1, true);
- return parser.parse(new RubyParserConfiguration(false), lexerSource).getAST();
+ ParserConfiguration config = new ParserConfiguration(1, true, false);
+ lexerSource = LexerSource.getSource(getName(), new InputStreamReader(getContents()), null, config);
+ return parser.parse(config, lexerSource).getAST();
} catch (CoreException e) {
return null;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|