1 11 12 package org.eclipse.ant.internal.ui.editor.text; 13 14 import org.eclipse.jface.text.IRegion; 15 import org.eclipse.jface.text.ITextViewer; 16 import org.eclipse.jface.text.information.IInformationProvider; 17 18 public class AntInformationProvider implements IInformationProvider { 19 20 XMLTextHover fTextHover; 21 22 public AntInformationProvider(XMLTextHover hover) { 23 fTextHover= hover; 24 } 25 28 public IRegion getSubject(ITextViewer textViewer, int offset) { 29 return fTextHover.getHoverRegion(textViewer, offset); 30 } 31 32 35 public String getInformation(ITextViewer textViewer, IRegion subject) { 36 return fTextHover.getHoverInfo(textViewer, subject); 37 } 38 } 39 | Popular Tags |