Package com.acrolinx.sidebar.utils
Class SidebarUtils
java.lang.Object
com.acrolinx.sidebar.utils.SidebarUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic SoftwareComponentInternal use.static Stringstatic StringgetSidebarErrorHtml(String logFileLocation) static StringgetSidebarUrl(String serverAddress) Returns the sidebar URL for a given Acrolinx Server Address.static intstatic Stringprotected static Pathstatic booleanisValidServerAddress(String serverAddress) Test if a sidebar is available for the given server address.static booleanisValidUrl(String urlString) Validates a URL.static voidopenLogFile(String logFileLocation) Opens the log file.static booleanopenSystemSpecific(String path) Attempts to show file in system specific file manager.static voidopenWebPageInDefaultBrowser(String urlString) Opens the given URL in the default Browser of the current OS.
-
Method Details
-
getSidebarErrorHtml
-
openWebPageInDefaultBrowser
Opens the given URL in the default Browser of the current OS. Note that this method is likely to cause JVM crashes within SWT-based applications! -
isValidUrl
Validates a URL. Local URLs are allowed.- Returns:
- true if url is valid
-
openLogFile
Opens the log file. For internal use. Attempts to open and preselect log file in systems file manager (only for mac os and windows). If that fails, it just shows the containing folder in the file manager. -
getSidebarUrl
Returns the sidebar URL for a given Acrolinx Server Address. For internal use. -
getCurrentSdkImplementationVersion
-
isValidServerAddress
Test if a sidebar is available for the given server address.- Returns:
- true if sidebar is available
-
getUserTempDirLocation
-
getJavaSdkSoftwareComponent
Internal use. -
openSystemSpecific
Attempts to show file in system specific file manager. Works only for mac and windows. For internal use only.- Parameters:
path- to file- Returns:
- boolean
-
getSystemJavaVersion
public static int getSystemJavaVersion() -
getSystemJavaVmName
-
getFullCurrentJavaVersionString
-
getPathOfCurrentJavaJre
-