Class KeyBindingSupportForAssistant

  • All Implemented Interfaces:
    ICompletionListener

    public final class KeyBindingSupportForAssistant
    extends Object
    implements ICompletionListener
    Helper class to make navigation key bindings work for the content assistant and the quick assist assistant while the editor has focus.

    Clients normally don't need to use that class as the setup is done by the framework.

    Since:
    3.4
    • Constructor Detail

      • KeyBindingSupportForAssistant

        @Deprecated
        public KeyBindingSupportForAssistant​(ContentAssistantFacade contentAssistFacade)
        Deprecated.
        As of 3.5, this is a NOP since the framework installs this now
        Creates the support for a content assistant facade.
        Parameters:
        contentAssistFacade - the content assist facade
      • KeyBindingSupportForAssistant

        public KeyBindingSupportForAssistant​(ISourceViewerExtension4 sourceViewerExtension)
        Creates the support for a content assistant facade.
        Parameters:
        sourceViewerExtension - the source viewer extension
        Since:
        3.5
      • KeyBindingSupportForAssistant

        @Deprecated
        public KeyBindingSupportForAssistant​(ContentAssistant contentAssistant)
        Deprecated.
        As of 3.5, this is a NOP since the framework installs this now
        Creates the support for a content assistant facade.
        Parameters:
        contentAssistant - the content assist facade
      • KeyBindingSupportForAssistant

        public KeyBindingSupportForAssistant​(IQuickAssistAssistant quickAssistAssistant)
        Creates the support for a quick assist assistant.
        Parameters:
        quickAssistAssistant - the quick assist assistant.
    • Method Detail

      • selectionChanged

        public void selectionChanged​(ICompletionProposal proposal,
                                     boolean smartToggle)
        Description copied from interface: ICompletionListener
        Called when the selection in the proposal popup is changed or if the insert-mode changed.
        Specified by:
        selectionChanged in interface ICompletionListener
        Parameters:
        proposal - the newly selected proposal, possibly null
        smartToggle - true if the insert-mode toggle is being pressed, false otherwise
      • dispose

        public void dispose()