Class Util
java.lang.Object
org.eclipse.ui.views.markers.internal.Util
The Util class is the class of general utilities used by the marker support.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallConcreteSelection(IStructuredSelection selection) Return whether or not all of the elements in the selection are concrete.static IStatuserrorStatus(Throwable exception) Return an error status for the given exception.static StringgetContainerName(IMarker marker) Get the name of the container.static StringgetCreationTime(long timestamp) Get the human readable creation time from the timestampstatic StringgetCreationTime(IMarker marker) Get the human readable creation time from the marker.static ImagegetImage(int severity) Get the image for the severity if it can be identified.static StringgetProperty(String property, IMarker marker) Get the propery called property from the marker.static StringgetShortContainerName(IMarker marker) Get the short name for the containerstatic booleanisEditable(IMarker marker) Return whether or not the marker is editable.
-
Method Details
-
getProperty
-
getCreationTime
Get the human readable creation time from the timestamp- Returns:
- String
-
getCreationTime
-
getContainerName
-
isEditable
Return whether or not the marker is editable.- Returns:
- boolean
trueif it is editable
-
errorStatus
-
getImage
Get the image for the severity if it can be identified.- Returns:
- Image or
null
-
getShortContainerName
-
allConcreteSelection
Return whether or not all of the elements in the selection are concrete.- Returns:
trueif all of the elements are concrete.
-