本文整理了Java中org.eclipse.jface.text.source.Annotation.isMarkedDeleted()
方法的一些代码示例,展示了Annotation.isMarkedDeleted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.isMarkedDeleted()
方法的具体详情如下:
包路径:org.eclipse.jface.text.source.Annotation
类名称:Annotation
方法名:isMarkedDeleted
[英]Returns whether this annotation is marked as deleted.
[中]返回此批注是否标记为已删除。
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor
@Override
public boolean canFix(Annotation annotation) {
return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public static boolean isQuickFixableType(Annotation annotation) {
return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor
@Override
public boolean canFix(Annotation annotation) {
return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
public static boolean isQuickFixableType(Annotation annotation) {
return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.apache.uima/ruta-ep-ide-ui
public static boolean isQuickFixableType(Annotation annotation) {
return (annotation instanceof IScriptAnnotation || annotation instanceof SimpleMarkerAnnotation)
&& !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
public static boolean isQuickFixableType(Annotation annotation) {
return (annotation instanceof IJavaAnnotation || annotation instanceof SimpleMarkerAnnotation) && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse/org.eclipse.ui.workbench.texteditor
public boolean canFix(Annotation annotation) {
return annotation instanceof SpellingAnnotation && !annotation.isMarkedDeleted();
}
代码示例来源:origin: org.eclipse.xtext/ui
public boolean apply(Annotation annotation) {
if (annotation.isMarkedDeleted())
return false;
return referringToSameIssue(annotation, marker);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.xtext/ui
@Override
public int getLayer(Annotation annotation) {
if (annotation.isMarkedDeleted()) {
return IAnnotationAccessExtension.DEFAULT_LAYER;
}
return super.getLayer(annotation);
}
};
代码示例来源:origin: org.eclipse.xtext/ui
@Override
public int getLayer(Annotation annotation) {
if (annotation.isMarkedDeleted()) {
return IAnnotationAccessExtension.DEFAULT_LAYER;
}
return super.getLayer(annotation);
}
});
代码示例来源:origin: org.eclipse.xtext/ui
@Override
public int getLayer(Annotation annotation) {
if (annotation.isMarkedDeleted()) {
return IAnnotationAccessExtension.DEFAULT_LAYER;
}
return super.getLayer(annotation);
}
},
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
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);
}
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/**
* 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);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
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);
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
/**
* 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);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
/**
* 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);
}
}
代码示例来源:origin: org.eclipse.xtext/ui
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();
}
}
}
代码示例来源:origin: org.eclipse.xtext/ui
/**
* @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"));
}
内容来源于网络,如有侵权,请联系作者删除!