diff options
Diffstat (limited to 'org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java')
-rw-r--r-- | org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java index f324d455..9aaeb1b8 100644 --- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java +++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java @@ -18,9 +18,10 @@ import org.eclipse.core.runtime.IPath; import org.eclipse.jface.text.source.IAnnotationModel; import org.eclipse.ui.texteditor.ResourceMarkerAnnotationModelFactory; + /** - * created this file to get the proper lightbulb icon for the warnings with hint - * is almost exact copy of the wst one.. + * created this file to get the proper lightbulb icon for the warnings with hint is almost exact copy of the wst one.. + * * @author mkleint */ public class POMMarkerAnnotationModelFactory extends ResourceMarkerAnnotationModelFactory { @@ -34,10 +35,9 @@ public class POMMarkerAnnotationModelFactory extends ResourceMarkerAnnotationMod public IAnnotationModel createAnnotationModel(IPath location) { IAnnotationModel model = null; IFile file = FileBuffers.getWorkspaceFileAtLocation(location); - if (file != null) { + if(file != null) { model = new POMMarkerAnnotationModel(file); - } - else { + } else { model = new POMMarkerAnnotationModel(ResourcesPlugin.getWorkspace().getRoot(), location.toString()); } return model; |