Class ComboContentAssistSubjectAdapter

    • Constructor Detail

      • ComboContentAssistSubjectAdapter

        public ComboContentAssistSubjectAdapter​(Combo combo)
        Deprecated.
        Creates a content assist subject control adapter for the given combo.
        Parameters:
        combo - the combo to adapt
    • Method Detail

      • getLineHeight

        public int getLineHeight()
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns the line height.
        Returns:
        line height in pixel
      • getCaretOffset

        public int getCaretOffset()
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns the caret position relative to the start of the text in widget coordinates.
        Returns:
        the caret position relative to the start of the text in widget coordinates
      • getLocationAtOffset

        public Point getLocationAtOffset​(int offset)
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns the x, y location of the upper left corner of the character bounding box at the specified offset in the text. The point is relative to the upper left corner of the widget client area.
        Parameters:
        offset - widget offset relative to the start of the content 0 <= offset >= getCharCount()
        Returns:
        x, y location of the upper left corner of the character bounding box at the specified offset in the text
      • getWidgetSelectionRange

        public Point getWidgetSelectionRange()
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns the selected range in the subject's widget.
        Returns:
        start and length of the selection, x is the offset of the
      • getSelectedRange

        public Point getSelectedRange()
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns the selected range.
        Returns:
        start and length of the selection, x is the offset and y the length based on the subject's model (e.g. document)
      • getDocument

        public IDocument getDocument()
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Returns this content assist subject control's document.
        Returns:
        the viewer's input document
      • setSelectedRange

        public void setSelectedRange​(int i,
                                     int j)
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Sets the selected range. Offset and length based on the subject's model (e.g. document).
        Parameters:
        i - the offset of the selection based on the subject's model e.g. document
        j - the length of the selection based on the subject's model e.g. document
      • revealRange

        public void revealRange​(int i,
                                int j)
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Reveals the given region. Offset and length based on the subject's model (e.g. document).
        Parameters:
        i - the offset of the selection based on the subject's model e.g. document
        j - the length of the selection based on the subject's model e.g. document
      • addSelectionListener

        public boolean addSelectionListener​(SelectionListener selectionListener)
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        If supported, adds a selection listener. A Selection event is sent by the widget when the selection has changed.

        Parameters:
        selectionListener - the listener
        Returns:
        true if adding a selection listener is supported
      • removeSelectionListener

        public void removeSelectionListener​(SelectionListener selectionListener)
        Deprecated.
        Description copied from interface: IContentAssistSubjectControl
        Removes the specified selection listener.

        Parameters:
        selectionListener - the listener