java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TraceUtils

public class TraceUtils extends Object
Utility class for common tmf.ui functionalities
  • Method Details

    • displayErrorMsg

      public static void displayErrorMsg(String boxTitle, String errorMsg)
      Displays an error message in a box
      Parameters:
      boxTitle - The message box title
      errorMsg - The error message to display
    • displayErrorMsg

      public static void displayErrorMsg(Throwable exception)
      Displays an error message in a box
      Parameters:
      exception - the exception or null if the error does not originate from an exception
      Since:
      5.1
    • displayWarningMsg

      public static void displayWarningMsg(Throwable exception)
      Displays a warning message in a box
      Parameters:
      exception - the exception or null if the error does not originate from an exception
      Since:
      5.1
    • displayErrorMsg

      public static void displayErrorMsg(String boxTitle, String errorMsg, Throwable exception)
      Displays an error message in a box
      Parameters:
      boxTitle - The message box title
      errorMsg - The error message to display
      exception - the exception or null if the error does not originate from an exception
      Since:
      2.2
    • getOpenedTmfProjects

      public static List<org.eclipse.core.resources.IProject> getOpenedTmfProjects()
      Get the opened (accessible) projects with Tmf nature
      Returns:
      the Tmf projects
    • createFolder

      public static void createFolder(org.eclipse.core.resources.IFolder folder, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Create a folder, ensuring all parent folders are also created.
      Parameters:
      folder - the folder to create
      monitor - the progress monitor
      Throws:
      org.eclipse.core.runtime.CoreException - if the folder cannot be created