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_VERTICALSPACINGFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanclose()Closes this popup.protected final ControlcreateDialogArea(Composite parent) protected Colorprotected ColorbooleanhasFocus()intopen()Opens this ContentProposalPopup.voidrefreshProposals(ContentProposalList newProposalList) voidsetPopupSize(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, 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
-
Method Details
-
getForeground
- Overrides:
getForegroundin classPopupDialog
-
getBackground
- Overrides:
getBackgroundin classPopupDialog
-
createDialogArea
- Overrides:
createDialogAreain classPopupDialog
-
adjustBounds
protected void adjustBounds()- Overrides:
adjustBoundsin 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:
openin classPopupDialog- Returns:
- the return code
-
close
public boolean close()Closes this popup. This method is extended to remove the control listener.- Overrides:
closein classPopupDialog- Returns:
trueif the window is (or was already) closed, andfalseif it is still open
-
getPopupSize
-
setPopupSize
-
refreshProposals
-