/** * <copyright> * </copyright> * * */ package org.emftext.language.java.resource.java.ui; import org.eclipse.core.resources.IMarker; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.quickassist.IQuickFixableAnnotation; import org.eclipse.ui.texteditor.MarkerAnnotation; public class JavaMarkerAnnotation extends MarkerAnnotation implements IQuickFixableAnnotation { // private boolean isQuickFixable; public JavaMarkerAnnotation(IMarker marker) { super(marker); } public void setQuickFixable(boolean state) { // this.isQuickFixable = state; } public boolean isQuickFixableStateSet() { return true; } public boolean isQuickFixable() { try { return getMarker().getAttribute(IMarker.SOURCE_ID) != null; } catch (CoreException e) { // ignore } return false; } }