Class ParametersHoverInfoControl
java.lang.Object
com._1c.g5.v8.dt.bsl.ui.contentassist.ParametersHoverInfoControl
Class provides methods for creating and showing browser control for hover information about parameters of methods and constructors in Bsl language
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default font forinfoControl
static final int
Default height in char ofinfoControl
static final int
Default width in char ofinfoControl
-
Constructor Summary
ConstructorsConstructorDescriptionParametersHoverInfoControl
(BslDocumentationProvider documentation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes browser controlorg.eclipse.jface.text.AbstractInformationControl
Gets active browserAbstractInformationControl
getInfoString
(String returnTypeStr) Returns content for browser which contains description of current parametervoid
initInfoControl
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr) Initializes browser for actualITextViewer
void
Sets browser's contentvoid
showControlInfo
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr) Shows browser controlvoid
showControlInfo
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr, List<org.eclipse.xtext.util.Pair<BslDocumentationProvider.DocumentContent.ParamContent, String>> params, Version version) Shows browser controlvoid
showNextIndex
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr) Shows next parameter if available in browservoid
showPrevIndex
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr) Shows previous parameter if available in browservoid
showToggleDescr
(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr) Shows or hides parameter description in browser
-
Field Details
-
WIDTH_IN_CHAR
public static final int WIDTH_IN_CHARDefault width in char ofinfoControl
- See Also:
-
HEIGHT_IN_CHAR
public static final int HEIGHT_IN_CHARDefault height in char ofinfoControl
- See Also:
-
BSL_FONT
Default font forinfoControl
- See Also:
-
-
Constructor Details
-
ParametersHoverInfoControl
Constructor- Parameters:
documentation
- actualBslDocumentationProvider
, can't benull
-
-
Method Details
-
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 -
getInfoString
Returns content for browser which contains description of current parameter- Parameters:
returnTypeStr
- string of return types corresponding to method, can benull
- Returns:
- string content for browser, can be
null
-
initInfoControl
Initializes browser for actualITextViewer
- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
-
showPrevIndex
Shows previous parameter if available in browser- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
-
showNextIndex
Shows next parameter if available in browser- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
-
showToggleDescr
Shows or hides parameter description in browser- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
-
showControlInfo
public void showControlInfo(org.eclipse.jface.text.ITextViewer viewer, String returnTypeStr, List<org.eclipse.xtext.util.Pair<BslDocumentationProvider.DocumentContent.ParamContent, String>> params, Version version) Shows browser control- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
version
- current version of 1C:Enterprise, can benull
params
- list of available parameters, can't benull
-
showControlInfo
Shows browser control- Parameters:
viewer
- actualITextViewer
, can't benull
returnTypeStr
- string of return types corresponding to method, can benull
-
setInput
Sets browser's content- Parameters:
info
- content to display in browser, can benull
-