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

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

Browser input for XtextHtmlHover.

Since:
3.4

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()
          The element to use to set the browsers input.
 java.lang.String getInputName()
          A human readable name for the input.
 
Methods inherited from class org.eclipse.jface.internal.text.html.BrowserInformationControlInput
getLeadingImageWidth, 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
leadingImageWidth - the indent required for the element image
Method Detail

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
Returns:
the HTML contents

getInputElement

public java.lang.Object getInputElement()
Description copied from class: org.eclipse.jface.internal.text.html.BrowserInput
The element to use to set the browsers input.

Specified by:
getInputElement in class org.eclipse.jface.internal.text.html.BrowserInput
Returns:
the input element

getInputName

public java.lang.String getInputName()
Description copied from class: org.eclipse.jface.internal.text.html.BrowserInput
A human readable name for the input.

Specified by:
getInputName in class org.eclipse.jface.internal.text.html.BrowserInput
Returns:
the input name