Class BslContentAssistBrowserInput
java.lang.Object
org.eclipse.jface.internal.text.html.BrowserInput
org.eclipse.jface.internal.text.html.BrowserInformationControlInput
org.eclipse.xtext.ui.editor.hover.html.XtextBrowserInformationControlInput
com._1c.g5.v8.dt.internal.bsl.ui.browserscommon.BslBrowserInformationControlInput
com._1c.g5.v8.dt.bsl.ui.contentassist.BslContentAssistBrowserInput
A content assistant browser input class.
-
Constructor Summary
ConstructorsConstructorDescriptionBslContentAssistBrowserInput(BslContentAssistBrowserInput previous, int subPageIndex, int paramIndex, boolean showDescr, List<IBslDocumentationContentAssistPage> pages) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets content html.protected StringGets heading content html.booleanGets whether the input is showing description.protected intgetSize()Gets pages size.getUri()Gets uri string of the current subpage.Gets current page platform version.protected IBslDocumentationViewPageGets associated view page.voidsetShowDescription(boolean showDescription) Sets the input should to show description or no.Methods inherited from class com._1c.g5.v8.dt.internal.bsl.ui.browserscommon.BslBrowserInformationControlInput
addStyleToHtml, getHtml, getIndex, getNext, hideNext, restoreNext, setIndexMethods inherited from class org.eclipse.xtext.ui.editor.hover.html.XtextBrowserInformationControlInput
getElement, getInputElement, getLeadingImageWidthMethods inherited from class org.eclipse.jface.internal.text.html.BrowserInformationControlInput
toStringMethods inherited from class org.eclipse.jface.internal.text.html.BrowserInput
getPrevious
-
Constructor Details
-
BslContentAssistBrowserInput
public BslContentAssistBrowserInput(BslContentAssistBrowserInput previous, int subPageIndex, int paramIndex, boolean showDescr, List<IBslDocumentationContentAssistPage> pages) Constructor.- Parameters:
previous- previous history input. May benullif it it a first history inputsubPageIndex- index of subpage. Subpages are signatures usually. Should be >= 0 and <pageslist sizeparamIndex- index of the parameter. May be < or >= then subpage parameters count, then no content assistant parameter is selectedshowDescr-trueif need to show descriptionfalseotherwisepages- subpage list. Nevernulland all elements nevernull. Should be non empty
-
-
Method Details
-
getInputName
- Overrides:
getInputNamein classorg.eclipse.xtext.ui.editor.hover.html.XtextBrowserInformationControlInput
-
getShowDescription
public boolean getShowDescription()Gets whether the input is showing description.- Returns:
trueif the input is showing descriptionfalseotherwise
-
setShowDescription
public void setShowDescription(boolean showDescription) Sets the input should to show description or no. -
getUri
Gets uri string of the current subpage.- Returns:
- uri. May be
null
-
getVersion
Description copied from class:BslBrowserInformationControlInputGets current page platform version.- Specified by:
getVersionin classBslBrowserInformationControlInput- Returns:
- platform version. May be
nullif no subpage opened
-
getSize
protected int getSize()Description copied from class:BslBrowserInformationControlInputGets pages size.- Specified by:
getSizein classBslBrowserInformationControlInput- Returns:
- size of the page group. Always >= 0
-
getHeadingContentHtml
Description copied from class:BslBrowserInformationControlInputGets heading content html. This content will be in the top of the page directly ifBslBrowserInformationControlInput.getSize()<= 1 and wiil be in right of subpage counter ifBslBrowserInformationControlInput.getSize()> 1. Should be contains only string html nodes.- Specified by:
getHeadingContentHtmlin classBslBrowserInformationControlInput- Returns:
- heading content html text. Never
null
-
getContentHtml
Description copied from class:BslBrowserInformationControlInputGets content html. This content will be immedately after heading line.- Specified by:
getContentHtmlin classBslBrowserInformationControlInput- Returns:
- content html text. Never
null
-
getViewPage
Description copied from class:BslBrowserInformationControlInputGets associated view page.- Specified by:
getViewPagein classBslBrowserInformationControlInput- Returns:
- view page. May be
null
-