Class ContentProposalPopup
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.PopupDialog
org.yamcs.studio.autocomplete.ui.content.ContentProposalPopup
- All Implemented Interfaces:
IShellProvider
The lightweight popup used to show content proposals for a text field. If additional information exists for a
proposal, then selecting that proposal will result in the information being displayed in a secondary popup.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
close()
Closes this popup.protected final Control
createDialogArea
(Composite parent) protected Color
protected Color
boolean
hasFocus()
int
open()
Opens this ContentProposalPopup.void
refreshProposals
(ContentProposalList newProposalList) void
setPopupSize
(Point size) 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
-
Method Details
-
getForeground
- Overrides:
getForeground
in classPopupDialog
-
getBackground
- Overrides:
getBackground
in classPopupDialog
-
createDialogArea
- Overrides:
createDialogArea
in classPopupDialog
-
adjustBounds
protected void adjustBounds()- Overrides:
adjustBounds
in classPopupDialog
-
hasFocus
public boolean hasFocus() -
open
public int open()Opens this ContentProposalPopup. This method is extended in order to add the control listener when the popup is opened and to invoke the secondary popup if applicable.- Overrides:
open
in classPopupDialog
- Returns:
- the return code
-
close
public boolean close()Closes this popup. This method is extended to remove the control listener.- Overrides:
close
in classPopupDialog
- Returns:
true
if the window is (or was already) closed, andfalse
if it is still open
-
getPopupSize
-
setPopupSize
-
refreshProposals
-