Skip to content

Commit

Permalink
Merge pull request #57 from eMoflon/rkluge-dev
Browse files Browse the repository at this point in the history
Fix critical bug due to missing annotation processor
  • Loading branch information
RolandKluge committed Mar 16, 2018
2 parents 0a6f8fd + 8f8ecb1 commit 7d18fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
Expand Down Expand Up @@ -57,7 +58,8 @@ public final void report(final IStatus status) {
}

protected void reportLeafStatus(final IStatus status) throws CoreException {
final IMarker validationMarker = file.createMarker(WorkspaceHelper.MOFLON_PROBLEM_MARKER_ID);
final IResource markedResource = file.exists() ? file : file.getProject();
final IMarker validationMarker = markedResource.createMarker(WorkspaceHelper.MOFLON_PROBLEM_MARKER_ID);
validationMarker.setAttribute(IMarker.MESSAGE, status.getMessage());
validationMarker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_HIGH);
validationMarker.setAttribute(IMarker.SEVERITY,
Expand Down

This file was deleted.

0 comments on commit 7d18fbd

Please sign in to comment.