|
From: Christopher W. <caw...@us...> - 2006-02-24 02:02:25
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24092/src/org/rubypeople/rdt/internal/ui/text/ruby Modified Files: RubyCompletionProcessor.java Log Message: jeez, I really have to remember to set target platform for eclipse. Fixing incompatibility with 3.1.x version of Eclipse. Index: RubyCompletionProcessor.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyCompletionProcessor.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** RubyCompletionProcessor.java 18 Feb 2006 17:29:33 -0000 1.17 --- RubyCompletionProcessor.java 24 Feb 2006 02:02:20 -0000 1.18 *************** *** 20,24 **** import org.eclipse.jface.text.contentassist.IContextInformationPresenter; import org.eclipse.jface.text.contentassist.IContextInformationValidator; - import org.eclipse.jface.text.contentassist.TextContentAssistInvocationContext; import org.eclipse.jface.text.templates.Template; import org.eclipse.jface.text.templates.TemplateCompletionProcessor; --- 20,23 ---- *************** *** 228,245 **** /** - * Creates the context that is passed to the completion proposal computers. - * - * @param viewer - * the viewer that content assist is invoked on - * @param offset - * the content assist offset - * @return the context to be passed to the computers - */ - protected TextContentAssistInvocationContext createContext( - ITextViewer viewer, int offset) { - return new TextContentAssistInvocationContext(viewer, offset); - } - - /** * @return */ --- 227,230 ---- *************** *** 247,253 **** int documentOffset) { TemplateEngine engine = fRubyTemplateEngine; ! TextContentAssistInvocationContext context = createContext(viewer, ! documentOffset); ! if (engine != null) { IRubyScript unit = fManager --- 232,236 ---- int documentOffset) { TemplateEngine engine = fRubyTemplateEngine; ! if (engine != null) { IRubyScript unit = fManager *************** *** 257,261 **** engine.reset(); ! engine.complete(context.getViewer(), context.getInvocationOffset(), unit); --- 240,244 ---- engine.reset(); ! engine.complete(refViewer, documentOffset, unit); |