@Override public boolean canFix(Annotation annotation) { return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted(); }
public static boolean isQuickFixableType(Annotation annotation) { return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted(); }
@Override public boolean canFix(Annotation annotation) { return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted(); }
public static boolean isQuickFixableType(Annotation annotation) { return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted(); }
public static boolean isQuickFixableType(Annotation annotation) { return (annotation instanceof IScriptAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted(); }
public static boolean isQuickFixableType(Annotation annotation) { return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted(); }
public boolean canFix(Annotation annotation) { return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted(); }
public boolean apply(Annotation annotation) { if (annotation.isMarkedDeleted()) return false; return referringToSameIssue(annotation, marker); }
private void skip() { while (fIterator.hasNext()) { Annotation next= fIterator.next(); if (next.isMarkedDeleted()) continue; if (fReturnAllAnnotations || next instanceof IJavaAnnotation || isProblemMarkerAnnotation(next)) { fNext= next; return; } } fNext= null; }
private void skip() { while (fIterator.hasNext()) { Annotation next= fIterator.next(); if (next.isMarkedDeleted()) continue; if (fReturnAllAnnotations || next instanceof IJavaAnnotation || isProblemMarkerAnnotation(next)) { fNext= next; return; } } fNext= null; }
@Override public int getLayer(Annotation annotation) { if (annotation.isMarkedDeleted()) { return IAnnotationAccessExtension.DEFAULT_LAYER; } return super.getLayer(annotation); } };
@Override public int getLayer(Annotation annotation) { if (annotation.isMarkedDeleted()) { return IAnnotationAccessExtension.DEFAULT_LAYER; } return super.getLayer(annotation); } });
@Override public int getLayer(Annotation annotation) { if (annotation.isMarkedDeleted()) { return IAnnotationAccessExtension.DEFAULT_LAYER; } return super.getLayer(annotation); } },
private void cacheAnnotations() { fCachedAnnotations.clear(); if (fModel != null) { Iterator<Annotation> iter= fModel.getAnnotationIterator(); while (iter.hasNext()) { Annotation annotation= iter.next(); if (annotation.isMarkedDeleted()) continue; if (skip(annotation.getType())) continue; fCachedAnnotations.add(annotation); } } }
/** * Returns the annotation preference for the given annotation. * * @param annotation the annotation * @return the annotation preference or <code>null</code> if none */ private static AnnotationPreference getAnnotationPreference(Annotation annotation) { if (annotation.isMarkedDeleted()) return null; return EditorsUI.getAnnotationPreferenceLookup().getAnnotationPreference(annotation); } }
private void cacheAnnotations() { fCachedAnnotations.clear(); if (fModel != null) { Iterator<Annotation> iter= fModel.getAnnotationIterator(); while (iter.hasNext()) { Annotation annotation= iter.next(); if (annotation.isMarkedDeleted()) continue; if (skip(annotation.getType())) continue; fCachedAnnotations.add(annotation); } } }
/** * Returns the annotation preference for the given annotation. * * @param annotation the annotation * @return the annotation preference or <code>null</code> if none */ private AnnotationPreference getAnnotationPreference(Annotation annotation) { if (annotation.isMarkedDeleted()) return null; return EditorsUI.getAnnotationPreferenceLookup().getAnnotationPreference(annotation); } }
/** * Returns the annotation preference for the given annotation. * * @param annotation the annotation * @return the annotation preference or <code>null</code> if none */ private static AnnotationPreference getAnnotationPreference(Annotation annotation) { if (annotation.isMarkedDeleted()) return null; return EditorsUI.getAnnotationPreferenceLookup().getAnnotationPreference(annotation); } }
private Map<String, Image> getImages(Annotation annotation) { if(annotation.isMarkedDeleted()) return XtextPluginImages.getAnnotationImagesDeleted(); else { if (annotation instanceof MarkerAnnotation) { MarkerAnnotation ma = (MarkerAnnotation) annotation; if(ma.isQuickFixableStateSet() && ma.isQuickFixable()) return XtextPluginImages.getAnnotationImagesFixable(); } return XtextPluginImages.getAnnotationImagesNonfixable(); } } }
/** * @since 2.1 */ protected boolean isHandled(Annotation annotation) { return null != annotation && !annotation.isMarkedDeleted() && (markerAnnotationAccess.isSubtype(annotation.getType(), "org.eclipse.ui.workbench.texteditor.error") || markerAnnotationAccess.isSubtype(annotation.getType(), "org.eclipse.ui.workbench.texteditor.warning") || markerAnnotationAccess.isSubtype(annotation.getType(), "org.eclipse.ui.workbench.texteditor.info") || markerAnnotationAccess.isSubtype(annotation.getType(), "org.eclipse.ui.workbench.texteditor.bookmark") || markerAnnotationAccess.isSubtype(annotation.getType(), "org.eclipse.ui.workbench.texteditor.spelling")); }