org.eclipse.xtext.ui.editor.hover.html
Class XtextBrowserInformationControlInput
java.lang.Object
org.eclipse.jface.internal.text.html.BrowserInput
org.eclipse.jface.internal.text.html.BrowserInformationControlInput
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
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 |
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 availableelement
- the element, or null
if none availablehtml
- HTML contents, must not be nullleadingImageWidth
- the indent required for the element image
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