Class SidebarUtils

java.lang.Object
com.acrolinx.sidebar.utils.SidebarUtils

public final class SidebarUtils extends Object
  • Method Details

    • getSidebarErrorHtml

      public static String getSidebarErrorHtml(String logFileLocation)
    • openWebPageInDefaultBrowser

      public static void openWebPageInDefaultBrowser(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(String urlString)
      Validates a URL. Local URLs are allowed.
      Returns:
      true if url is valid
    • openLogFile

      public static void openLogFile(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 String getSidebarUrl(String serverAddress)
      Returns the sidebar URL for a given Acrolinx Server Address. For internal use.
    • getCurrentSdkImplementationVersion

      public static String getCurrentSdkImplementationVersion()
    • isValidServerAddress

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

      protected static Path getUserTempDirLocation()
    • getJavaSdkSoftwareComponent

      public static SoftwareComponent getJavaSdkSoftwareComponent()
      Internal use.
    • openSystemSpecific

      public static boolean openSystemSpecific(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 String getSystemJavaVmName()
    • getFullCurrentJavaVersionString

      public static String getFullCurrentJavaVersionString()
    • getPathOfCurrentJavaJre

      public static String getPathOfCurrentJavaJre()