Class DefaultInformationControl

java.lang.Object
org.eclipse.jface.text.AbstractInformationControl
org.eclipse.jface.text.DefaultInformationControl
All Implemented Interfaces:
EventListener, IInformationControl, IInformationControlExtension, IInformationControlExtension3, IInformationControlExtension4, IInformationControlExtension5, DisposeListener, SWTEventListener

public class DefaultInformationControl extends AbstractInformationControl implements DisposeListener
Default implementation of IInformationControl.

Displays textual information in a StyledText widget. Before displaying, the information set to this information control is processed by an IInformationPresenter.

Since:
2.0
  • Constructor Details

    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, boolean isResizeable)
      Creates a default information control with the given shell as parent. An information presenter that can handle simple HTML is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      isResizeable - true if the control should be resizable
      Since:
      3.4
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, String statusFieldText)
      Creates a default information control with the given shell as parent. An information presenter that can handle simple HTML is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      statusFieldText - the text to be used in the status field or null to hide the status field
      Since:
      3.4
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, String statusFieldText, DefaultInformationControl.IInformationPresenter presenter)
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      statusFieldText - the text to be used in the status field or null to hide the status field
      presenter - the presenter to be used, or null if no presenter should be used
      Since:
      3.4
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, ToolBarManager toolBarManager)
      Creates a resizable default information control with the given shell as parent. An information presenter that can handle simple HTML is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      toolBarManager - the manager or null if toolbar is not desired
      Since:
      3.4
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, ToolBarManager toolBarManager, DefaultInformationControl.IInformationPresenter presenter)
      Creates a resizable default information control with the given shell as parent. The given information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      toolBarManager - the manager or null if toolbar is not desired
      presenter - the presenter to be used, or null if no presenter should be used
      Since:
      3.4
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent)
      Creates a default information control with the given shell as parent. No information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
    • DefaultInformationControl

      public DefaultInformationControl(Shell parent, DefaultInformationControl.IInformationPresenter presenter)
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      presenter - the presenter to be used
    • DefaultInformationControl

      @Deprecated public DefaultInformationControl(Shell parent, int shellStyle, int style, DefaultInformationControl.IInformationPresenter presenter)
      Deprecated.
      As of 3.4, replaced by simpler constructors
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed. The given styles are applied to the created styled text widget.
      Parameters:
      parent - the parent shell
      shellStyle - the additional styles for the shell
      style - the additional styles for the styled text widget
      presenter - the presenter to be used
    • DefaultInformationControl

      @Deprecated public DefaultInformationControl(Shell parentShell, int shellStyle, int style, DefaultInformationControl.IInformationPresenter presenter, String statusFieldText)
      Deprecated.
      As of 3.4, replaced by simpler constructors
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed. The given styles are applied to the created styled text widget.
      Parameters:
      parentShell - the parent shell
      shellStyle - the additional styles for the shell
      style - the additional styles for the styled text widget
      presenter - the presenter to be used
      statusFieldText - the text to be used in the status field or null to hide the status field
      Since:
      3.0
    • DefaultInformationControl

      @Deprecated public DefaultInformationControl(Shell parent, int textStyles, DefaultInformationControl.IInformationPresenter presenter)
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      textStyles - the additional styles for the styled text widget
      presenter - the presenter to be used
    • DefaultInformationControl

      @Deprecated public DefaultInformationControl(Shell parent, int textStyles, DefaultInformationControl.IInformationPresenter presenter, String statusFieldText)
      Creates a default information control with the given shell as parent. The given information presenter is used to process the information to be displayed.
      Parameters:
      parent - the parent shell
      textStyles - the additional styles for the styled text widget
      presenter - the presenter to be used
      statusFieldText - the text to be used in the status field or null to hide the status field
      Since:
      3.0
  • Method Details