Class ParametersHoverInfoControl


  • public class ParametersHoverInfoControl
    extends Object
    Class provides methods for creating and showing browser control for hover information about parameters of methods and constructors in Bsl language
    • Field Detail

      • WIDTH_IN_CHAR

        public static final int WIDTH_IN_CHAR
        Default width in char of infoControl
        See Also:
        Constant Field Values
      • HEIGHT_IN_CHAR

        public static final int HEIGHT_IN_CHAR
        Default height in char of infoControl
        See Also:
        Constant Field Values
    • Method Detail

      • getControl

        public org.eclipse.jface.text.AbstractInformationControl getControl()
        Gets active browser AbstractInformationControl
        Returns:
        active browser AbstractInformationControl, can be null if browser hasn't been initialized yet
      • dispose

        public void dispose()
        Disposes browser control
      • initInfoControl

        public void initInfoControl​(org.eclipse.jface.text.ITextViewer viewer)
        Initializes browser for actual ITextViewer
        Parameters:
        viewer - actual ITextViewer, can't be null
      • showControlInfo

        public void showControlInfo​(org.eclipse.jface.text.ITextViewer viewer,
                                    String info,
                                    int weight,
                                    int length)
        Shows browser control
        Parameters:
        viewer - actual ITextViewer, can't be null
        info - actual parameter showing information, can't be null
        weight - appropriate weight of control
        length - current length of the actual parameter value
      • showControlInfo

        public void showControlInfo​(org.eclipse.jface.text.ITextViewer viewer,
                                    String info,
                                    int weight,
                                    int height,
                                    int offset)
        Shows browser control
        Parameters:
        viewer - actual ITextViewer, can't be null
        info - actual parameter showing information, can't be null
        weight - appropriate weight of control
        height - appropriate height of control
        offset - current offset in ITextViewer for showing control