Package com._1c.g5.v8.dt.bsl.ui.view
Class BslLocationListener
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.view.BslLocationListener
-
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.browser.LocationListener
,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
BslEObjectHoverProvider.BslHoverLocationListener
public class BslLocationListener extends Object implements org.eclipse.swt.browser.LocationListener
Listens changing url in browser See browser inBslInfoView
-
-
Field Summary
Fields Modifier and Type Field Description static String
ABOUT
protected BslDocumentationProvider
documentation
protected boolean
isOuterHost
static String
LOCALHOST
static String
LOCALHOST_NUM
static String
URI_FILE
-
Constructor Summary
Constructors Constructor Description BslLocationListener(ISyntaxAssistBrowser browser, BslDocumentationProvider documentation)
Constructor
-
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)
protected URL
checkLocation(org.eclipse.swt.browser.LocationEvent event)
Checks location for localhost and validateURL
Map<String,String>
getActualTypeSetInformationFromBrowserInput()
Gets actualTypeSet
names and their including types.String
getMethodicalLink()
Gets url to methodical informationVersion
getVersionFromBrowserInput()
Gets actualVersion
from actualBrowserInput
-
-
-
Field Detail
-
ABOUT
public static final String ABOUT
- See Also:
- Constant Field Values
-
URI_FILE
public static final String URI_FILE
- See Also:
- Constant Field Values
-
LOCALHOST
public static final String LOCALHOST
- See Also:
- Constant Field Values
-
LOCALHOST_NUM
public static final String LOCALHOST_NUM
- See Also:
- Constant Field Values
-
isOuterHost
protected boolean isOuterHost
-
documentation
protected BslDocumentationProvider documentation
-
-
Constructor Detail
-
BslLocationListener
public BslLocationListener(ISyntaxAssistBrowser browser, BslDocumentationProvider documentation)
Constructor- Parameters:
browser
- actualISyntaxAssistBrowser
, can benull
if there is noISyntaxAssistBrowser
documentation
- actualBslDocumentationProvider
, can't benull
-
-
Method Detail
-
getVersionFromBrowserInput
public Version getVersionFromBrowserInput()
Gets actualVersion
from actualBrowserInput
- Returns:
- actual
Version
from actualBrowserInput
, nevernull
, if there is no version inBrowserInput
the max allowed version will be return
-
changing
public void changing(org.eclipse.swt.browser.LocationEvent event)
- Specified by:
changing
in interfaceorg.eclipse.swt.browser.LocationListener
-
changed
public void changed(org.eclipse.swt.browser.LocationEvent event)
- Specified by:
changed
in interfaceorg.eclipse.swt.browser.LocationListener
-
getActualTypeSetInformationFromBrowserInput
public Map<String,String> getActualTypeSetInformationFromBrowserInput()
Gets actualTypeSet
names and their including types.- 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
-
getMethodicalLink
public String getMethodicalLink()
Gets url to methodical information- Returns:
- url to methodical information, never
null
, can be empty if there is no url to methodical information
-
-