Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.eclipse.xtext.ui.editor.model;
 
 import  org.eclipse.core.resources.IMarker;
 import  org.eclipse.core.resources.IResource;
 import  org.eclipse.core.runtime.CoreException;
 import  org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel;

Author(s):
Moritz Eysholdt - Initial contribution and API
Since:
2.4
public class JarFileMarkerAnnotationModel extends ResourceMarkerAnnotationModel {
	private static final Logger log = Logger.getLogger(JarFileMarkerAnnotationModel.class);
	public static final String MARKER_URI = JarFileMarkerAnnotationModel.class.getName() + ".URI";
	final URI fullURI;
	public JarFileMarkerAnnotationModel(IResource jarFileURI fullURI) {
		super(jarFile);
		this. = fullURI;
	}
	protected boolean isAcceptable(IMarker marker) {
		if (!super.isAcceptable(marker))
			return false;
		Object markerURI;
		try {
			markerURI = marker.getAttribute();
			return markerURI != null && markerURI.equals(.toString());
catch (CoreException e) {
			.error(e.getMessage(), e);
			return false;
		}
	}
New to GrepCode? Check out our FAQ X