Class TraceUtils
java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TraceUtils
Utility class for common tmf.ui functionalities
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateFolder(org.eclipse.core.resources.IFolder folder, org.eclipse.core.runtime.IProgressMonitor monitor) Create a folder, ensuring all parent folders are also created.static voiddisplayErrorMsg(String boxTitle, String errorMsg) Displays an error message in a boxstatic voiddisplayErrorMsg(String boxTitle, String errorMsg, Throwable exception) Displays an error message in a boxstatic voiddisplayErrorMsg(Throwable exception) Displays an error message in a boxstatic voiddisplayWarningMsg(Throwable exception) Displays a warning message in a boxstatic List<org.eclipse.core.resources.IProject>Get the opened (accessible) projects with Tmf nature
-
Method Details
-
displayErrorMsg
Displays an error message in a box- Parameters:
boxTitle- The message box titleerrorMsg- The error message to display
-
displayErrorMsg
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
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
Displays an error message in a box- Parameters:
boxTitle- The message box titleerrorMsg- The error message to displayexception- the exception or null if the error does not originate from an exception- Since:
- 2.2
-
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 createmonitor- the progress monitor- Throws:
org.eclipse.core.runtime.CoreException- if the folder cannot be created
-