Class ContentHelperPopup
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.PopupDialog
org.yamcs.studio.autocomplete.ui.content.ContentHelperPopup
- All Implemented Interfaces:
IShellProvider
The popup used to display tooltips.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
-
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.PopupDialog
HOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_IMG_MENU, POPUP_IMG_MENU_DISABLED, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACING
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
boolean
close()
Closes this ContentHelperPopup.boolean
close
(boolean canOpen) protected Control
createDialogArea
(Composite parent) protected Color
protected Color
boolean
isOpened()
int
open()
Opens this ContentHelperPopupboolean
refresh()
Refresh this ContentHelperPopup if already opened.void
updateData
(List<TooltipData> dataList) Methods inherited from class org.eclipse.jface.dialogs.PopupDialog
applyBackgroundColor, applyForegroundColor, configureShell, createContents, createInfoTextArea, createTitleControl, createTitleMenuArea, fillDialogMenu, getBackgroundColorExclusions, getDefaultLocation, getDefaultSize, getDialogSettings, getFocusControl, getForegroundColorExclusions, getInitialLocation, getInitialSize, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, saveDialogBounds, setInfoText, setTabOrder, setTitleText, showDialogMenu
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
ContentHelperPopup
-
-
Method Details
-
createDialogArea
- Overrides:
createDialogArea
in classPopupDialog
-
adjustBounds
protected void adjustBounds()- Overrides:
adjustBounds
in classPopupDialog
-
getForeground
- Overrides:
getForeground
in classPopupDialog
-
getBackground
- Overrides:
getBackground
in classPopupDialog
-
open
public int open()Opens this ContentHelperPopup- Overrides:
open
in classPopupDialog
- Returns:
- the return code
-
close
public boolean close()Closes this ContentHelperPopup.- Overrides:
close
in classPopupDialog
- Returns:
true
if the window is (or was already) closed, andfalse
if it is still open
-
close
public boolean close(boolean canOpen) -
refresh
public boolean refresh()Refresh this ContentHelperPopup if already opened.- Returns:
true
if the window was refreshed, andfalse
if not
-
isOpened
public boolean isOpened() -
updateData
-
clearData
public void clearData()
-