Package com._1c.g5.v8.dt.bsl.ui.hover
Class BslEObjectHoverProvider.BslHoverLocationListener
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.view.BslLocationListener
-
- com._1c.g5.v8.dt.bsl.ui.hover.BslEObjectHoverProvider.BslHoverLocationListener
-
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.browser.LocationListener
,org.eclipse.swt.internal.SWTEventListener
- Enclosing class:
- BslEObjectHoverProvider
public class BslEObjectHoverProvider.BslHoverLocationListener extends BslLocationListener
SpecialLocationListener
for hover in BSL
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.ui.view.BslLocationListener
ABOUT, browser, documentation, isOuterHost, LOCALHOST, LOCALHOST_NUM, URI_FILE
-
-
Constructor Summary
Constructors Constructor Description BslHoverLocationListener(org.eclipse.xtext.ui.editor.hover.html.IXtextBrowserInformationControl control, BslDocumentationProvider documentation)
Initialize byIXtextBrowserInformationControl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changed(org.eclipse.swt.browser.LocationEvent event)
void
changing(org.eclipse.swt.browser.LocationEvent event)
Map<String,String>
getActualTypeSetInformationFromBrowserInput()
Gets actualTypeSet
names and their including types.Version
getVersionFromBrowserInput()
Gets actualVersion
from actualBrowserInput
-
Methods inherited from class com._1c.g5.v8.dt.bsl.ui.view.BslLocationListener
checkLocation, getMethodicalLink, tryChanging
-
-
-
-
Constructor Detail
-
BslHoverLocationListener
public BslHoverLocationListener(org.eclipse.xtext.ui.editor.hover.html.IXtextBrowserInformationControl control, BslDocumentationProvider documentation)
Initialize byIXtextBrowserInformationControl
- Parameters:
control
-documentation
- needs for getting documentation from {2link URL}
-
-
Method Detail
-
getVersionFromBrowserInput
public Version getVersionFromBrowserInput()
Description copied from class:BslLocationListener
Gets actualVersion
from actualBrowserInput
- Overrides:
getVersionFromBrowserInput
in classBslLocationListener
- Returns:
- actual
Version
from actualBrowserInput
, nevernull
, if there is no version inBrowserInput
the max allowed version will be return
-
getActualTypeSetInformationFromBrowserInput
public Map<String,String> getActualTypeSetInformationFromBrowserInput()
Description copied from class:BslLocationListener
Gets actualTypeSet
names and their including types.- Overrides:
getActualTypeSetInformationFromBrowserInput
in classBslLocationListener
- Returns:
- the map, where key - name of the type category name (
TypeSet
name equals to category type name), value - names of the object which has type corresponding to the category type name in key of the map through the comma. At the end of the value you can find special symbol '#' and name of the base type after it.
Attention for category "AnyRef" - the value is names of the type corresponding to the it through the comma. Also there is no special symbol '#' at the end.
Nevernull
-
changing
public void changing(org.eclipse.swt.browser.LocationEvent event)
- Specified by:
changing
in interfaceorg.eclipse.swt.browser.LocationListener
- Overrides:
changing
in classBslLocationListener
-
changed
public void changed(org.eclipse.swt.browser.LocationEvent event)
- Specified by:
changed
in interfaceorg.eclipse.swt.browser.LocationListener
- Overrides:
changed
in classBslLocationListener
-
-