|
From: Christopher W. <caw...@us...> - 2005-12-09 02:05:15
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3695/src/org/rubypeople/rdt/internal/ui/text Modified Files: RubySourceViewerConfiguration.java Log Message: apply the patch from murphee to allow extensions to text hovers Index: RubySourceViewerConfiguration.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubySourceViewerConfiguration.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** RubySourceViewerConfiguration.java 30 Jul 2005 21:34:54 -0000 1.21 --- RubySourceViewerConfiguration.java 9 Dec 2005 02:05:06 -0000 1.22 *************** *** 6,9 **** --- 6,10 ---- import org.eclipse.jface.text.IInformationControl; import org.eclipse.jface.text.IInformationControlCreator; + import org.eclipse.jface.text.ITextHover; import org.eclipse.jface.text.contentassist.ContentAssistant; import org.eclipse.jface.text.contentassist.IContentAssistant; *************** *** 24,27 **** --- 25,29 ---- import org.rubypeople.rdt.internal.ui.rubyeditor.RubySourceViewer; import org.rubypeople.rdt.internal.ui.text.ruby.RubyCompletionProcessor; + import org.rubypeople.rdt.internal.ui.text.ruby.hover.RubyCodeTextHover; public class RubySourceViewerConfiguration extends SourceViewerConfiguration { *************** *** 29,32 **** --- 31,35 ---- protected RubyTextTools textTools; protected ITextEditor fTextEditor; + private RubyCodeTextHover fRubyTextHover; public RubySourceViewerConfiguration(RubyTextTools theTextTools, RubyAbstractEditor theTextEditor) { *************** *** 165,167 **** --- 168,178 ---- } + + public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) { + if(fRubyTextHover == null){ + fRubyTextHover = new RubyCodeTextHover(); + } + return fRubyTextHover; + } + } |