public final class Util
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
allConcreteSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Return whether or not all of the elements in the selection are concrete.
|
static org.eclipse.core.runtime.IStatus |
errorStatus(java.lang.Throwable exception)
Return an error status for the given exception.
|
static java.lang.String |
getContainerName(org.eclipse.core.resources.IMarker marker)
Get the name of the container.
|
static java.lang.String |
getCreationTime(org.eclipse.core.resources.IMarker marker)
Get the human readable creation time from the marker.
|
static java.lang.String |
getCreationTime(long timestamp)
Get the human readable creation time from the timestamp
|
static org.eclipse.swt.graphics.Image |
getImage(int severity)
Get the image for the severity if it can be identified.
|
static java.lang.String |
getProperty(java.lang.String property,
org.eclipse.core.resources.IMarker marker)
Get the propery called property from the marker.
|
static java.lang.String |
getResourceName(org.eclipse.core.resources.IMarker marker)
Get the name of the element.
|
static java.lang.String |
getShortContainerName(org.eclipse.core.resources.IMarker marker)
Get the short name for the container
|
static boolean |
isEditable(org.eclipse.core.resources.IMarker marker)
Return whether or not the marker is editable.
|
static void |
log(org.eclipse.core.runtime.CoreException exception)
Log the exception.
|
public static java.lang.String getProperty(java.lang.String property, org.eclipse.core.resources.IMarker marker)
property
- marker
- public static java.lang.String getCreationTime(long timestamp)
timestamp
- public static java.lang.String getCreationTime(org.eclipse.core.resources.IMarker marker)
marker
- public static java.lang.String getContainerName(org.eclipse.core.resources.IMarker marker)
marker
- public static void log(org.eclipse.core.runtime.CoreException exception)
exception
- public static java.lang.String getResourceName(org.eclipse.core.resources.IMarker marker)
marker
- public static boolean isEditable(org.eclipse.core.resources.IMarker marker)
marker
- true
if it is editablepublic static org.eclipse.core.runtime.IStatus errorStatus(java.lang.Throwable exception)
exception
- public static org.eclipse.swt.graphics.Image getImage(int severity)
severity
- null
public static java.lang.String getShortContainerName(org.eclipse.core.resources.IMarker marker)
marker
- public static boolean allConcreteSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
selection
-