org.eclipse.xtext.ui.editor.hover.html
Class XtextBrowserInformationControlInput

java.lang.Object
  extended by org.eclipse.jface.internal.text.html.BrowserInput
      extended by org.eclipse.jface.internal.text.html.BrowserInformationControlInput
          extended by org.eclipse.xtext.ui.editor.hover.html.XtextBrowserInformationControlInput
Direct Known Subclasses:
XbaseInformationControlInput

public class XtextBrowserInformationControlInput
extends org.eclipse.jface.internal.text.html.BrowserInformationControlInput

Browser input for XtextHtmlHover.

Since:
2.3

Constructor Summary
XtextBrowserInformationControlInput(XtextBrowserInformationControlInput previous, org.eclipse.emf.ecore.EObject element, java.lang.String html, org.eclipse.jface.viewers.ILabelProvider labelProvider)
          Creates a new browser information control input.
 
Method Summary
 org.eclipse.emf.ecore.EObject getElement()
           
 java.lang.String getHtml()
           
 java.lang.Object getInputElement()
           
 java.lang.String getInputName()
           
 int getLeadingImageWidth()
           
 
Methods inherited from class org.eclipse.jface.internal.text.html.BrowserInformationControlInput
toString
 
Methods inherited from class org.eclipse.jface.internal.text.html.BrowserInput
getNext, getPrevious
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XtextBrowserInformationControlInput

public XtextBrowserInformationControlInput(XtextBrowserInformationControlInput previous,
                                           org.eclipse.emf.ecore.EObject element,
                                           java.lang.String html,
                                           org.eclipse.jface.viewers.ILabelProvider labelProvider)
Creates a new browser information control input.

Parameters:
previous - previous input, or null if none available
element - the element, or null if none available
html - HTML contents, must not be null
labelProvider - used to determinate the input name getInputName().
Method Detail

getLeadingImageWidth

public int getLeadingImageWidth()
Overrides:
getLeadingImageWidth in class org.eclipse.jface.internal.text.html.BrowserInformationControlInput
Since:
2.3

getElement

public org.eclipse.emf.ecore.EObject getElement()

getHtml

public java.lang.String getHtml()
Specified by:
getHtml in class org.eclipse.jface.internal.text.html.BrowserInformationControlInput

getInputElement

public java.lang.Object getInputElement()
Specified by:
getInputElement in class org.eclipse.jface.internal.text.html.BrowserInput

getInputName

public java.lang.String getInputName()
Specified by:
getInputName in class org.eclipse.jface.internal.text.html.BrowserInput