Class ParametersHoverInfoControl
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.contentassist.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 Summary
Fields Modifier and Type Field Description static String
BSL_FONT
Default font forinfoControl
static int
HEIGHT_IN_CHAR
Default height in char ofinfoControl
static int
WIDTH_IN_CHAR
Default width in char ofinfoControl
-
Constructor Summary
Constructors Constructor Description ParametersHoverInfoControl(BslDocumentationProvider documentation)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes browser controlorg.eclipse.jface.text.AbstractInformationControl
getControl()
Gets active browserAbstractInformationControl
void
initInfoControl(org.eclipse.jface.text.ITextViewer viewer)
Initializes browser for actualITextViewer
void
showControlInfo(org.eclipse.jface.text.ITextViewer viewer, String info, int weight, int length)
Shows browser controlvoid
showControlInfo(org.eclipse.jface.text.ITextViewer viewer, String info, int weight, int height, int offset)
Shows browser control
-
-
-
Field Detail
-
WIDTH_IN_CHAR
public static final int WIDTH_IN_CHAR
Default width in char ofinfoControl
- See Also:
- Constant Field Values
-
HEIGHT_IN_CHAR
public static final int HEIGHT_IN_CHAR
Default height in char ofinfoControl
- See Also:
- Constant Field Values
-
BSL_FONT
public static final String BSL_FONT
Default font forinfoControl
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParametersHoverInfoControl
public ParametersHoverInfoControl(BslDocumentationProvider documentation)
Constructor- Parameters:
documentation
- actualBslDocumentationProvider
, can't benull
-
-
Method Detail
-
getControl
public org.eclipse.jface.text.AbstractInformationControl getControl()
Gets active browserAbstractInformationControl
- Returns:
- active browser
AbstractInformationControl
, can benull
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 actualITextViewer
- Parameters:
viewer
- actualITextViewer
, can't benull
-
showControlInfo
public void showControlInfo(org.eclipse.jface.text.ITextViewer viewer, String info, int weight, int length)
Shows browser control- Parameters:
viewer
- actualITextViewer
, can't benull
info
- actual parameter showing information, can't benull
weight
- appropriate weight of controllength
- 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
- actualITextViewer
, can't benull
info
- actual parameter showing information, can't benull
weight
- appropriate weight of controlheight
- appropriate height of controloffset
- current offset inITextViewer
for showing control
-
-