private boolean isBreakpointAnnotation(Annotation a) { // HACK to get breakpoints to show up first return a.getType().equals("org.eclipse.debug.core.breakpoint"); //$NON-NLS-1$ } }
/** * Checks whether the given annotation is a breakpoint annotation. * * @param annotation the annotation * @return <code>true</code> if the annotation is a breakpoint annotation */ private boolean isBreakpoint(Annotation annotation) { return annotation.getType().equals("org.eclipse.debug.core.breakpoint") || annotation.getType().equals(JavaExpandHover.NO_BREAKPOINT_ANNOTATION); //$NON-NLS-1$ }
public static boolean isValidationAnnotation(Annotation annotation) { return annotation.getType().startsWith(TYPE_BASE); } }
private boolean isBreakpointAnnotation(Annotation a) { // HACK to get breakpoints to show up first return a.getType().equals("org.eclipse.debug.core.breakpoint"); //$NON-NLS-1$ } }
@Override protected boolean isIncluded(Annotation annotation) { return annotation.getType().equals(TitleAnnotation.TYPE) || isShowInVerticalRuler(annotation); } };
/** * Checks whether the given annotation is a breakpoint annotation. * * @param annotation * @return <code>true</code> if the annotation is a breakpoint annotation */ private boolean isBreakpoint(Annotation annotation) { return annotation.getType().equals("org.eclipse.debug.core.breakpoint") || annotation.getType().equals(JavaExpandHover.NO_BREAKPOINT_ANNOTATION); //$NON-NLS-1$ }
/** * {@inheritDoc} * * @deprecated use <code>Annotation.getType()</code> */ @Deprecated @Override public Object getType(Annotation annotation) { return annotation.getType(); }
private boolean isBreakpointAnnotation(Annotation a) { // HACK to get breakpoints to show up first return a.getType().equals("org.eclipse.debug.core.breakpoint"); //$NON-NLS-1$ } }
private boolean isImageProviderFor(Annotation annotation) { return annotation != null && OverrideIndicatorManager.ANNOTATION_TYPE.equals(annotation.getType()); }
/** * Checks whether the given annotation is a breakpoint annotation. * * @param annotation the annotation * @return <code>true</code> if the annotation is a breakpoint annotation */ private boolean isBreakpoint(Annotation annotation) { return annotation.getType().equals("org.eclipse.debug.core.breakpoint") || annotation.getType().equals(JavaExpandHover.NO_BREAKPOINT_ANNOTATION); //$NON-NLS-1$ }
private boolean isImageProviderFor(Annotation annotation) { return annotation != null && OverrideIndicatorManager.ANNOTATION_TYPE.equals(annotation.getType()); }
/** * Returns the annotation preference of a given annotation. * * @param annotation the annotation * @return the annotation preference for the given annotation or <code>null</code> */ public AnnotationPreference getAnnotationPreference(Annotation annotation) { return getAnnotationPreference(annotation.getType()); }
public int getLayer(Annotation annotation) { int x = wrapped.getLayer(annotation); if ("org.eclipse.jdt.ui.overrideIndicator".equals(annotation //$NON-NLS-1$ .getType())) { x += 2; } return x; }
/** * Returns the annotation preference of a given annotation. * * @param annotation the annotation * @return the annotation preference for the given annotation or <code>null</code> */ public AnnotationPreference getAnnotationPreference(Annotation annotation) { return getAnnotationPreference(annotation.getType()); }
public Image getManagedImage(Annotation annotation) { return getImages(annotation).get(annotation.getType()); }
/** * @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")); }
@SuppressWarnings("unchecked") protected Annotation[] getExistingOccurrenceAnnotations(IAnnotationModel annotationModel) { Set<Annotation> removeSet = newHashSet(); for (Iterator<Annotation> annotationIter = annotationModel.getAnnotationIterator(); annotationIter .hasNext();) { Annotation annotation = annotationIter.next(); if (occurrenceComputer.hasAnnotationType(annotation.getType())) { removeSet.add(annotation); } } return toArray(removeSet, Annotation.class); } }
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); } } }
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); } } }