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

public class ContentProposalPopup extends PopupDialog
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.
  • Method Details

    • getForeground

      protected Color getForeground()
      Overrides:
      getForeground in class PopupDialog
    • getBackground

      protected Color getBackground()
      Overrides:
      getBackground in class PopupDialog
    • createDialogArea

      protected final Control createDialogArea(Composite parent)
      Overrides:
      createDialogArea in class PopupDialog
    • adjustBounds

      protected void adjustBounds()
      Overrides:
      adjustBounds in class PopupDialog
    • 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 class PopupDialog
      Returns:
      the return code
    • close

      public boolean close()
      Closes this popup. This method is extended to remove the control listener.
      Overrides:
      close in class PopupDialog
      Returns:
      true if the window is (or was already) closed, and false if it is still open
    • getPopupSize

      public Point getPopupSize()
    • setPopupSize

      public void setPopupSize(Point size)
    • refreshProposals

      public void refreshProposals(ContentProposalList newProposalList)