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, setStatusText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose
public 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.AbstractInformationControl
protected 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.IInformationControlExtension2
setInput
in interface IXtextBrowserInformationControl
public org.eclipse.swt.graphics.Point computeSizeHint()
computeSizeHint
in interface org.eclipse.jface.text.IInformationControl
computeSizeHint
in class org.eclipse.jface.text.AbstractInformationControl
public XtextBrowserInformationControlInput getInput()
getInput
in interface IXtextBrowserInformationControl
public org.eclipse.swt.graphics.Point computeSizeConstraints(int widthInChars, int heightInChars)
computeSizeConstraints
in interface org.eclipse.jface.text.IInformationControlExtension5
computeSizeConstraints
in class org.eclipse.jface.text.AbstractInformationControl
public 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.IInformationControl
setVisible
in class org.eclipse.jface.text.AbstractInformationControl
public void setSize(int width, int height)
setSize
in interface org.eclipse.jface.text.IInformationControl
setSize
in class org.eclipse.jface.text.AbstractInformationControl
public org.eclipse.swt.graphics.Rectangle computeTrim()
computeTrim
in interface org.eclipse.jface.text.IInformationControlExtension3
computeTrim
in class org.eclipse.jface.text.AbstractInformationControl
public void addLocationListener(org.eclipse.swt.browser.LocationListener listener)
addLocationListener
in interface IXtextBrowserInformationControl
listener
- the location listenerpublic boolean hasContents()
hasContents
in interface org.eclipse.jface.text.IInformationControlExtension
public void addInputChangeListener(org.eclipse.jface.text.IInputChangedListener inputChangeListener)
addInputChangeListener
in interface IXtextBrowserInformationControl
inputChangeListener
- 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.IDelayedInputChangeProvider
public boolean hasDelayedInputChangeListener()
hasDelayedInputChangeListener
in interface IXtextBrowserInformationControl
true
if a delayed input change listener is currently registeredpublic void notifyDelayedInputChange(java.lang.Object newInput)
notifyDelayedInputChange
in interface IXtextBrowserInformationControl
newInput
- the new input, or null
to request cancellationpublic java.lang.String toString()
toString
in class java.lang.Object