Class ComboViewerContentAdapter

  • All Implemented Interfaces:
    IViewerControlContentAdapter, org.eclipse.jface.fieldassist.IControlContentAdapter, org.eclipse.jface.fieldassist.IControlContentAdapter2

    public class ComboViewerContentAdapter
    extends AbstractStructuredViewerControlContentAdapter
    ComboContentAdapter extension for ComboViewer object content support.

    Instead of selection combo items, instances of ComboViewerContentAdapter selecting actual content item (with relating selection events).

    • Constructor Detail

      • ComboViewerContentAdapter

        public ComboViewerContentAdapter​(ComboViewer comboViewer)
        Parameters:
        comboViewer - the target combo viewer to create content adapter for, cannot be null
    • Method Detail

      • getControlContents

        public String getControlContents​(org.eclipse.swt.widgets.Control control)
      • getCursorPosition

        public int getCursorPosition​(org.eclipse.swt.widgets.Control control)
      • getInsertionBounds

        public org.eclipse.swt.graphics.Rectangle getInsertionBounds​(org.eclipse.swt.widgets.Control control)
      • getSelection

        public org.eclipse.swt.graphics.Point getSelection​(org.eclipse.swt.widgets.Control control)
      • insertControlContents

        public void insertControlContents​(org.eclipse.swt.widgets.Control control,
                                          String text,
                                          int cursorPosition)
      • setCursorPosition

        public void setCursorPosition​(org.eclipse.swt.widgets.Control control,
                                      int index)
      • setSelection

        public void setSelection​(org.eclipse.swt.widgets.Control control,
                                 org.eclipse.swt.graphics.Point range)