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_VERTICALSPACINGFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbooleanclose()Closes this ContentHelperPopup.booleanclose(boolean canOpen) protected ControlcreateDialogArea(Composite parent) protected Colorprotected ColorbooleanisOpened()intopen()Opens this ContentHelperPopupbooleanrefresh()Refresh this ContentHelperPopup if already opened.voidupdateData(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, showDialogMenuMethods 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:
createDialogAreain classPopupDialog
-
adjustBounds
protected void adjustBounds()- Overrides:
adjustBoundsin classPopupDialog
-
getForeground
- Overrides:
getForegroundin classPopupDialog
-
getBackground
- Overrides:
getBackgroundin classPopupDialog
-
open
public int open()Opens this ContentHelperPopup- Overrides:
openin classPopupDialog- Returns:
- the return code
-
close
public boolean close()Closes this ContentHelperPopup.- Overrides:
closein classPopupDialog- Returns:
trueif the window is (or was already) closed, andfalseif it is still open
-
close
public boolean close(boolean canOpen) -
refresh
public boolean refresh()Refresh this ContentHelperPopup if already opened.- Returns:
trueif the window was refreshed, andfalseif not
-
isOpened
public boolean isOpened() -
updateData
-
clearData
public void clearData()
-