org.eclipse.emf.cdo.releng.version
Class Markers
java.lang.Object
org.eclipse.emf.cdo.releng.version.Markers
- public final class Markers
- extends Object
Provides static utility methods that may be helpful when dealing with markers
.
Method Summary |
static IMarker |
addMarker(IFile file,
String message,
int severity,
int lineNumber,
int charStart,
int charEnd)
|
static IMarker |
addMarker(IFile file,
String message,
int severity,
String regex)
|
static IMarker |
addMarker(IResource resource,
String message)
|
static IMarker |
addMarker(IResource resource,
String message,
int severity)
|
static IMarker |
addMarker(IResource resource,
String message,
int severity,
int lineNumber)
|
static int |
compareAttributes(String attributeName,
IMarker m1,
IMarker m2)
|
static void |
deleteAllMarkers(IResource resource)
|
static void |
deleteAllMarkers(IResource resource,
String problemType)
|
static String |
getAttribute(IMarker marker,
String attributeName)
|
static Comparable<?> |
getAttributeValue(IMarker marker,
String attributeName)
|
static String |
getProblemType(IMarker marker)
|
static String |
getQuickFixAlternativeReplacement(IMarker marker)
|
static String |
getQuickFixConfigureOption(IMarker marker)
|
static String |
getQuickFixNature(IMarker marker)
|
static String |
getQuickFixPattern(IMarker marker)
|
static String |
getQuickFixProject(IMarker marker)
|
static String |
getQuickFixReference(IMarker marker)
|
static String |
getQuickFixReplacement(IMarker marker)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MARKER_TYPE
public static final String MARKER_TYPE
- See Also:
- Constant Field Values
PROBLEM_TYPE
public static final String PROBLEM_TYPE
- See Also:
- Constant Field Values
DEVIATION_INFO
public static final String DEVIATION_INFO
- See Also:
- Constant Field Values
RELEASE_PATH_PROBLEM
public static final String RELEASE_PATH_PROBLEM
- See Also:
- Constant Field Values
MALFORMED_VERSION_PROBLEM
public static final String MALFORMED_VERSION_PROBLEM
- See Also:
- Constant Field Values
SCHEMA_BUILDER_PROBLEM
public static final String SCHEMA_BUILDER_PROBLEM
- See Also:
- Constant Field Values
FEATURE_NATURE_PROBLEM
public static final String FEATURE_NATURE_PROBLEM
- See Also:
- Constant Field Values
VERSION_NATURE_PROBLEM
public static final String VERSION_NATURE_PROBLEM
- See Also:
- Constant Field Values
DEBUG_OPTION_PROBLEM
public static final String DEBUG_OPTION_PROBLEM
- See Also:
- Constant Field Values
DEPENDENCY_RANGE_PROBLEM
public static final String DEPENDENCY_RANGE_PROBLEM
- See Also:
- Constant Field Values
EXPORT_VERSION_PROBLEM
public static final String EXPORT_VERSION_PROBLEM
- See Also:
- Constant Field Values
UNREFERENCED_ELEMENT_PROBLEM
public static final String UNREFERENCED_ELEMENT_PROBLEM
- See Also:
- Constant Field Values
COMPONENT_VERSION_PROBLEM
public static final String COMPONENT_VERSION_PROBLEM
- See Also:
- Constant Field Values
VALIDATOR_CLASS_PROBLEM
public static final String VALIDATOR_CLASS_PROBLEM
- See Also:
- Constant Field Values
RESOURCE_ATTRIBUTE
public static final String RESOURCE_ATTRIBUTE
- See Also:
- Constant Field Values
QUICK_FIX_PATTERN
public static final String QUICK_FIX_PATTERN
- See Also:
- Constant Field Values
QUICK_FIX_REPLACEMENT
public static final String QUICK_FIX_REPLACEMENT
- See Also:
- Constant Field Values
QUICK_FIX_ALTERNATIVE_REPLACEMENT
public static final String QUICK_FIX_ALTERNATIVE_REPLACEMENT
- See Also:
- Constant Field Values
QUICK_FIX_NATURE
public static final String QUICK_FIX_NATURE
- See Also:
- Constant Field Values
QUICK_FIX_PROJECT
public static final String QUICK_FIX_PROJECT
- See Also:
- Constant Field Values
QUICK_FIX_REFERENCE
public static final String QUICK_FIX_REFERENCE
- See Also:
- Constant Field Values
QUICK_FIX_CONFIGURE_OPTION
public static final String QUICK_FIX_CONFIGURE_OPTION
- See Also:
- Constant Field Values
getProblemType
public static String getProblemType(IMarker marker)
getQuickFixPattern
public static String getQuickFixPattern(IMarker marker)
getQuickFixReplacement
public static String getQuickFixReplacement(IMarker marker)
getQuickFixAlternativeReplacement
public static String getQuickFixAlternativeReplacement(IMarker marker)
getQuickFixNature
public static String getQuickFixNature(IMarker marker)
getQuickFixProject
public static String getQuickFixProject(IMarker marker)
getQuickFixReference
public static String getQuickFixReference(IMarker marker)
getQuickFixConfigureOption
public static String getQuickFixConfigureOption(IMarker marker)
getAttribute
public static String getAttribute(IMarker marker,
String attributeName)
getAttributeValue
public static Comparable<?> getAttributeValue(IMarker marker,
String attributeName)
compareAttributes
public static int compareAttributes(String attributeName,
IMarker m1,
IMarker m2)
addMarker
public static IMarker addMarker(IResource resource,
String message)
throws CoreException
- Throws:
CoreException
addMarker
public static IMarker addMarker(IResource resource,
String message,
int severity)
throws CoreException
- Throws:
CoreException
addMarker
public static IMarker addMarker(IResource resource,
String message,
int severity,
int lineNumber)
throws CoreException
- Throws:
CoreException
addMarker
public static IMarker addMarker(IFile file,
String message,
int severity,
int lineNumber,
int charStart,
int charEnd)
throws CoreException
- Throws:
CoreException
addMarker
public static IMarker addMarker(IFile file,
String message,
int severity,
String regex)
throws CoreException,
IOException
- Throws:
CoreException
IOException
deleteAllMarkers
public static void deleteAllMarkers(IResource resource)
throws CoreException
- Throws:
CoreException
deleteAllMarkers
public static void deleteAllMarkers(IResource resource,
String problemType)
throws CoreException
- Throws:
CoreException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.