public class XbaseInformationControl extends org.eclipse.jface.text.AbstractInformationControl implements org.eclipse.jface.text.IInformationControlExtension2, org.eclipse.jface.text.IDelayedInputChangeProvider, IXtextBrowserInformationControl
| Modifier and Type | Class and Description |
|---|---|
class |
XbaseInformationControl.HoverEditedResourceProvider
Creates the synthetic resource for the embedded editor Allows to set the ClasspathContext afterwards
|
| Constructor and Description |
|---|
XbaseInformationControl(org.eclipse.swt.widgets.Shell parent,
java.lang.String symbolicFontName,
java.lang.String statusFieldText,
XbaseHoverConfiguration xbaseHoverConfiguration)
Xbase - modification Added XbaseHoverConfiguration because we do not have DI here
|
XbaseInformationControl(org.eclipse.swt.widgets.Shell parent,
java.lang.String symbolicFontName,
org.eclipse.jface.action.ToolBarManager toolBarManager,
XbaseHoverConfiguration xbaseHoverConfiguration)
Xbase - modification Added XbaseHoverConfiguration because we do not have DI here
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
Adds a listener for input changes to this input change provider.
|
void |
addLocationListener(org.eclipse.swt.browser.LocationListener listener)
Adds the listener to the collection of listeners who will be notified when the current location has changed or is
about to change.
|
org.eclipse.swt.graphics.Point |
computeSizeConstraints(int widthInChars,
int heightInChars)
Xbase - modification
|
org.eclipse.swt.graphics.Point |
computeSizeHint()
Xbase - modification added some space for the detailPane
|
org.eclipse.swt.graphics.Rectangle |
computeTrim() |
protected org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent,
int columns,
int hspan,
int fill) |
protected void |
createContent(org.eclipse.swt.widgets.Composite parent)
Xbase - modification+ added detailPane
|
XtextBrowserInformationControlInput |
getInput()
Xbase - modification
|
boolean |
hasContents() |
boolean |
hasDelayedInputChangeListener()
Tells whether a delayed input change listener is registered.
|
static boolean |
isAvailable(org.eclipse.swt.widgets.Composite parent)
Tells whether the SWT Browser widget and hence this information control is available.
|
void |
notifyDelayedInputChange(java.lang.Object newInput)
Notifies listeners of a delayed input change.
|
void |
removeInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
Removes the given input change listener from this input change provider.
|
void |
setDelayedInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener) |
void |
setInput(java.lang.Object input)
Xbase - modification added detailPane
|
void |
setSize(int width,
int height) |
void |
setVisible(boolean visible) |
java.lang.String |
toString() |
addDisposeListener, addFocusListener, containsControl, create, dispose, getBounds, getInformationPresenterControlCreator, getShell, getSizeConstraints, getToolBarManager, handleDispose, isFocusControl, isResizable, isVisible, removeDisposeListener, removeFocusListener, restoresLocation, restoresSize, setBackgroundColor, setFocus, setForegroundColor, setInformation, setLocation, setSizeConstraints, setStatusTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdisposepublic XbaseInformationControl(org.eclipse.swt.widgets.Shell parent,
java.lang.String symbolicFontName,
java.lang.String statusFieldText,
XbaseHoverConfiguration xbaseHoverConfiguration)
public XbaseInformationControl(org.eclipse.swt.widgets.Shell parent,
java.lang.String symbolicFontName,
org.eclipse.jface.action.ToolBarManager toolBarManager,
XbaseHoverConfiguration xbaseHoverConfiguration)
protected void createContent(org.eclipse.swt.widgets.Composite parent)
createContent in class org.eclipse.jface.text.AbstractInformationControlprotected org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent,
int columns,
int hspan,
int fill)
public void setInput(java.lang.Object input)
setInput in interface org.eclipse.jface.text.IInformationControlExtension2setInput in interface IXtextBrowserInformationControlpublic org.eclipse.swt.graphics.Point computeSizeHint()
computeSizeHint in interface org.eclipse.jface.text.IInformationControlcomputeSizeHint in class org.eclipse.jface.text.AbstractInformationControlpublic XtextBrowserInformationControlInput getInput()
getInput in interface IXtextBrowserInformationControlpublic org.eclipse.swt.graphics.Point computeSizeConstraints(int widthInChars,
int heightInChars)
computeSizeConstraints in interface org.eclipse.jface.text.IInformationControlExtension5computeSizeConstraints in class org.eclipse.jface.text.AbstractInformationControlpublic static boolean isAvailable(org.eclipse.swt.widgets.Composite parent)
parent - the parent component used for checking or null if nonetrue if this control is availablepublic void setVisible(boolean visible)
setVisible in interface org.eclipse.jface.text.IInformationControlsetVisible in class org.eclipse.jface.text.AbstractInformationControlpublic void setSize(int width,
int height)
setSize in interface org.eclipse.jface.text.IInformationControlsetSize in class org.eclipse.jface.text.AbstractInformationControlpublic org.eclipse.swt.graphics.Rectangle computeTrim()
computeTrim in interface org.eclipse.jface.text.IInformationControlExtension3computeTrim in class org.eclipse.jface.text.AbstractInformationControlpublic void addLocationListener(org.eclipse.swt.browser.LocationListener listener)
addLocationListener in interface IXtextBrowserInformationControllistener - the location listenerpublic boolean hasContents()
hasContents in interface org.eclipse.jface.text.IInformationControlExtensionpublic void addInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
addInputChangeListener in interface IXtextBrowserInformationControlinputChangeListener - the listener to addpublic void removeInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
inputChangeListener - the listener to removepublic void setDelayedInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
setDelayedInputChangeListener in interface org.eclipse.jface.text.IDelayedInputChangeProviderpublic boolean hasDelayedInputChangeListener()
hasDelayedInputChangeListener in interface IXtextBrowserInformationControltrue if a delayed input change listener is currently registeredpublic void notifyDelayedInputChange(java.lang.Object newInput)
notifyDelayedInputChange in interface IXtextBrowserInformationControlnewInput - the new input, or null to request cancellationpublic java.lang.String toString()
toString in class java.lang.Object