Class CustomInformationControl

java.lang.Object
org.apache.uima.caseditor.editor.CustomInformationControl
All Implemented Interfaces:
org.eclipse.jface.text.IInformationControl, org.eclipse.jface.text.IInformationControlExtension2

public class CustomInformationControl extends Object implements org.eclipse.jface.text.IInformationControl, org.eclipse.jface.text.IInformationControlExtension2
TODO: add javadoc here.
  • Constructor Details

    • CustomInformationControl

      public CustomInformationControl(org.eclipse.swt.widgets.Shell parent, ICustomInformationControlContentHandler contentHandler)
      Initializes a new instance.
      Parameters:
      parent - the parent
      contentHandler - the content handler
  • Method Details

    • setControl

      public void setControl(org.eclipse.swt.widgets.Control viewerControl)
      Sets the viewer control.
      Parameters:
      viewerControl - the new control
    • getParent

      public org.eclipse.swt.widgets.Composite getParent()
      Retrieves the parent.
      Returns:
      the parent
    • setInformation

      public void setInformation(String information)
      Specified by:
      setInformation in interface org.eclipse.jface.text.IInformationControl
    • setSizeConstraints

      public void setSizeConstraints(int maxWidth, int maxHeight)
      Specified by:
      setSizeConstraints in interface org.eclipse.jface.text.IInformationControl
    • computeSizeHint

      public org.eclipse.swt.graphics.Point computeSizeHint()
      Specified by:
      computeSizeHint in interface org.eclipse.jface.text.IInformationControl
    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface org.eclipse.jface.text.IInformationControl
    • setSize

      public void setSize(int width, int height)
      Specified by:
      setSize in interface org.eclipse.jface.text.IInformationControl
    • setLocation

      public void setLocation(org.eclipse.swt.graphics.Point location)
      Specified by:
      setLocation in interface org.eclipse.jface.text.IInformationControl
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.jface.text.IInformationControl
    • addDisposeListener

      public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
      Specified by:
      addDisposeListener in interface org.eclipse.jface.text.IInformationControl
    • removeDisposeListener

      public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
      Specified by:
      removeDisposeListener in interface org.eclipse.jface.text.IInformationControl
    • setForegroundColor

      public void setForegroundColor(org.eclipse.swt.graphics.Color foreground)
      Specified by:
      setForegroundColor in interface org.eclipse.jface.text.IInformationControl
    • setBackgroundColor

      public void setBackgroundColor(org.eclipse.swt.graphics.Color background)
      Specified by:
      setBackgroundColor in interface org.eclipse.jface.text.IInformationControl
    • isFocusControl

      public boolean isFocusControl()
      Specified by:
      isFocusControl in interface org.eclipse.jface.text.IInformationControl
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.jface.text.IInformationControl
    • addFocusListener

      public void addFocusListener(org.eclipse.swt.events.FocusListener listener)
      Specified by:
      addFocusListener in interface org.eclipse.jface.text.IInformationControl
    • removeFocusListener

      public void removeFocusListener(org.eclipse.swt.events.FocusListener listener)
      Specified by:
      removeFocusListener in interface org.eclipse.jface.text.IInformationControl
    • setInput

      public void setInput(Object input)
      Specified by:
      setInput in interface org.eclipse.jface.text.IInformationControlExtension2
    • getControl

      public org.eclipse.swt.widgets.Control getControl()
      Retrieves the control.
      Returns:
      the control