use of org.eclipse.core.resources.IMarker in project xtext-xtend by eclipse.
the class Bug473833Test method assertNoErrors.
private void assertNoErrors(final IFile file) {
try {
final IMarker[] findMarkers = file.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
for (final IMarker iMarker : findMarkers) {
String _message = MarkerUtilities.getMessage(iMarker);
int _severity = MarkerUtilities.getSeverity(iMarker);
boolean _equals = (_severity == IMarker.SEVERITY_ERROR);
Assert.assertFalse(_message, _equals);
}
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
use of org.eclipse.core.resources.IMarker in project xtext-xtend by eclipse.
the class JavaVersionSettingTest method assertNoErrors.
private void assertNoErrors(final IFile file) {
try {
final IMarker[] findMarkers = file.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
for (final IMarker iMarker : findMarkers) {
String _message = MarkerUtilities.getMessage(iMarker);
int _severity = MarkerUtilities.getSeverity(iMarker);
boolean _equals = (_severity == IMarker.SEVERITY_ERROR);
Assert.assertFalse(_message, _equals);
}
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
use of org.eclipse.core.resources.IMarker in project xtext-xtend by eclipse.
the class RebuildAffectedResourcesTest method assertHasErrors.
public void assertHasErrors(final IFile file, final String msgPart) {
try {
final IMarker[] findMarkers = file.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
for (final IMarker iMarker : findMarkers) {
if (((MarkerUtilities.getSeverity(iMarker) == IMarker.SEVERITY_ERROR) && MarkerUtilities.getMessage(iMarker).contains(msgPart))) {
return;
}
}
IPath _fullPath = file.getFullPath();
String _plus = ((("Expected an error marker containing \'" + msgPart) + "\' on ") + _fullPath);
String _plus_1 = (_plus + " but found ");
final Function1<IMarker, String> _function = (IMarker it) -> {
return MarkerUtilities.getMessage(it);
};
String _join = IterableExtensions.join(ListExtensions.<IMarker, String>map(((List<IMarker>) Conversions.doWrapArray(findMarkers)), _function), ",");
String _plus_2 = (_plus_1 + _join);
Assert.fail(_plus_2);
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
use of org.eclipse.core.resources.IMarker in project xtext-xtend by eclipse.
the class RebuildAffectedResourcesTest method assertNoErrorsInWorkspace.
public void assertNoErrorsInWorkspace() {
try {
final IMarker[] findMarkers = ResourcesPlugin.getWorkspace().getRoot().findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
for (final IMarker iMarker : findMarkers) {
String _message = MarkerUtilities.getMessage(iMarker);
int _severity = MarkerUtilities.getSeverity(iMarker);
boolean _equals = (_severity == IMarker.SEVERITY_ERROR);
Assert.assertFalse(_message, _equals);
}
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
use of org.eclipse.core.resources.IMarker in project xtext-xtend by eclipse.
the class ResolvingCrossReferenceDuringIndexingTest method assertNoErrorsInWorkspace.
public void assertNoErrorsInWorkspace() {
try {
final IMarker[] findMarkers = ResourcesPlugin.getWorkspace().getRoot().findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
for (final IMarker iMarker : findMarkers) {
String _message = MarkerUtilities.getMessage(iMarker);
int _severity = MarkerUtilities.getSeverity(iMarker);
boolean _equals = (_severity == IMarker.SEVERITY_ERROR);
Assert.assertFalse(_message, _equals);
}
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
Aggregations