Revision: 2372
http://svn.sourceforge.net/rubyeclipse/?rev=2372&view=rev
Author: tcorbat
Date: 2007-04-26 04:23:58 -0700 (Thu, 26 Apr 2007)
Log Message:
-----------
Same problem fixed as in NodeProvider.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/formatsource/PreviewGeneratorImpl.java
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/formatsource/PreviewGeneratorImpl.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/formatsource/PreviewGeneratorImpl.java 2007-04-26 11:22:23 UTC (rev 2371)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/formatsource/PreviewGeneratorImpl.java 2007-04-26 11:23:58 UTC (rev 2372)
@@ -41,7 +41,7 @@
import org.jruby.parser.DefaultRubyParser;
import org.jruby.parser.RubyParserConfiguration;
import org.jruby.parser.RubyParserPool;
-import org.jruby.parser.postprocessor.DefaultCommentPlacer;
+//import org.jruby.parser.postprocessor.DefaultCommentPlacer;
public class PreviewGeneratorImpl implements PreviewGenerator {
@@ -61,7 +61,7 @@
LexerSource lexerSource = new LexerSource("", new StringReader(source)); //$NON-NLS-1$
ReWriteVisitor visitor = factory.createReWriteVisitor();
RubyParserConfiguration parserConfig = new RubyParserConfiguration();
- parserConfig.addPostProcessor(new DefaultCommentPlacer());
+// parserConfig.addPostProcessor(new DefaultCommentPlacer());
parser.parse(parserConfig, lexerSource).getAST().accept(visitor);
visitor.flushStream();
RubyParserPool.getInstance().returnParser(parser);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|