Class SidebarUtils


  • public final class SidebarUtils
    extends java.lang.Object
    • Method Detail

      • getSidebarErrorHtml

        public static java.lang.String getSidebarErrorHtml​(java.lang.String logFileLocation)
      • openWebPageInDefaultBrowser

        public static void openWebPageInDefaultBrowser​(java.lang.String urlString)
        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

        public static boolean isValidUrl​(java.lang.String urlString)
        Validates a URL. Local URLs are allowed.
        Returns:
        true if url is valid
      • openLogFile

        public static void openLogFile​(java.lang.String logFileLocation)
        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

        public static java.lang.String getSidebarUrl​(java.lang.String serverAddress)
        Returns the sidebar URL for a given Acrolinx Server Address. For internal use.
      • getCurrentSdkImplementationVersion

        public static java.lang.String getCurrentSdkImplementationVersion()
      • isValidServerAddress

        public static boolean isValidServerAddress​(java.lang.String serverAddress)
        Test if a sidebar is available for the given server address.
        Returns:
        true if sidebar is available
      • getUserTempDirLocation

        protected static java.nio.file.Path getUserTempDirLocation()
      • getJavaSdkSoftwareComponent

        public static SoftwareComponent getJavaSdkSoftwareComponent()
        Internal use.
      • openSystemSpecific

        public static boolean openSystemSpecific​(java.lang.String path)
        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

        public static java.lang.String getSystemJavaVmName()
      • getFullCurrentJavaVersionString

        public static java.lang.String getFullCurrentJavaVersionString()
      • getPathOfCurrentJavaJre

        public static java.lang.String getPathOfCurrentJavaJre()