public class WorkspaceHelpers extends Object
Constructor and Description |
---|
WorkspaceHelpers() |
Modifier and Type | Method and Description |
---|---|
static void |
assertConfiguratorErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker,
String configuratorId) |
static void |
assertConfiguratorErrorMarkerAttributes(org.eclipse.core.resources.IProject project,
String configuratorId) |
static org.eclipse.core.resources.IMarker |
assertErrorMarker(String type,
String message,
Integer lineNumber,
org.eclipse.core.resources.IProject project) |
static org.eclipse.core.resources.IMarker |
assertErrorMarker(String type,
String message,
Integer lineNumber,
String resourceRelativePath,
org.eclipse.core.resources.IProject project) |
static void |
assertErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker,
MojoExecutionKey mojoExecution) |
static void |
assertLifecycleIdErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker,
String lifecycleId) |
static void |
assertLifecycleIdErrorMarkerAttributes(org.eclipse.core.resources.IProject project,
String lifecycleId) |
static org.eclipse.core.resources.IMarker |
assertMarker(String type,
int severity,
String message,
Integer lineNumber,
String resourceRelativePath,
org.eclipse.core.resources.IProject project) |
static void |
assertMarkerLocation(SourceLocation markerLocation,
org.eclipse.core.resources.IMarker marker) |
static void |
assertNoErrors(org.eclipse.core.resources.IProject project) |
static void |
assertNoWarnings(org.eclipse.core.resources.IProject project) |
static org.eclipse.core.resources.IMarker |
assertWarningMarker(String type,
String message,
Integer lineNumber,
org.eclipse.core.resources.IProject project) |
static org.eclipse.core.resources.IMarker |
assertWarningMarker(String type,
String message,
Integer lineNumber,
String resourceRelativePath,
org.eclipse.core.resources.IProject project) |
static void |
cleanWorkspace() |
static List<org.eclipse.core.resources.IMarker> |
findErrorMarkers(org.eclipse.core.resources.IProject project) |
static List<org.eclipse.core.resources.IMarker> |
findMarkers(org.eclipse.core.resources.IProject project,
int targetSeverity) |
static List<org.eclipse.core.resources.IMarker> |
findMarkers(org.eclipse.core.resources.IProject project,
int targetSeverity,
String withAttribute) |
static List<org.eclipse.core.resources.IMarker> |
findWarningMarkers(org.eclipse.core.resources.IProject project) |
static String |
getModelId(org.apache.maven.project.MavenProject mavenProject) |
protected static String |
toString(org.eclipse.core.resources.IMarker marker) |
static String |
toString(org.eclipse.core.resources.IMarker[] markers) |
static String |
toString(List<org.eclipse.core.resources.IMarker> markers) |
public static String getModelId(org.apache.maven.project.MavenProject mavenProject)
public static void cleanWorkspace() throws InterruptedException, org.eclipse.core.runtime.CoreException
InterruptedException
org.eclipse.core.runtime.CoreException
public static String toString(org.eclipse.core.resources.IMarker[] markers)
protected static String toString(org.eclipse.core.resources.IMarker marker) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static List<org.eclipse.core.resources.IMarker> findMarkers(org.eclipse.core.resources.IProject project, int targetSeverity) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static List<org.eclipse.core.resources.IMarker> findMarkers(org.eclipse.core.resources.IProject project, int targetSeverity, String withAttribute) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static List<org.eclipse.core.resources.IMarker> findWarningMarkers(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static List<org.eclipse.core.resources.IMarker> findErrorMarkers(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void assertNoErrors(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void assertNoWarnings(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static org.eclipse.core.resources.IMarker assertErrorMarker(String type, String message, Integer lineNumber, String resourceRelativePath, org.eclipse.core.resources.IProject project) throws Exception
Exception
public static org.eclipse.core.resources.IMarker assertWarningMarker(String type, String message, Integer lineNumber, String resourceRelativePath, org.eclipse.core.resources.IProject project) throws Exception
Exception
public static org.eclipse.core.resources.IMarker assertErrorMarker(String type, String message, Integer lineNumber, org.eclipse.core.resources.IProject project) throws Exception
Exception
public static org.eclipse.core.resources.IMarker assertWarningMarker(String type, String message, Integer lineNumber, org.eclipse.core.resources.IProject project) throws Exception
Exception
public static org.eclipse.core.resources.IMarker assertMarker(String type, int severity, String message, Integer lineNumber, String resourceRelativePath, org.eclipse.core.resources.IProject project) throws Exception
Exception
public static void assertLifecycleIdErrorMarkerAttributes(org.eclipse.core.resources.IProject project, String lifecycleId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void assertConfiguratorErrorMarkerAttributes(org.eclipse.core.resources.IProject project, String configuratorId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void assertLifecycleIdErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker, String lifecycleId)
public static void assertConfiguratorErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker, String configuratorId)
public static void assertErrorMarkerAttributes(org.eclipse.core.resources.IMarker marker, MojoExecutionKey mojoExecution)
public static void assertMarkerLocation(SourceLocation markerLocation, org.eclipse.core.resources.IMarker marker) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.