本文整理汇总了Java中org.eclipse.jface.text.source.IAnnotationAccessExtension.DEFAULT_LAYER属性的典型用法代码示例。如果您正苦于以下问题:Java IAnnotationAccessExtension.DEFAULT_LAYER属性的具体用法?Java IAnnotationAccessExtension.DEFAULT_LAYER怎么用?Java IAnnotationAccessExtension.DEFAULT_LAYER使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jface.text.source.IAnnotationAccessExtension
的用法示例。
在下文中一共展示了IAnnotationAccessExtension.DEFAULT_LAYER属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: XtextAnnotation
public XtextAnnotation(String type, boolean isPersistent, IXtextDocument document, Issue issue, boolean isQuickfixable) {
super(type, isPersistent, issue.getMessage());
AnnotationPreference preference= lookup.getAnnotationPreference(this);
if (preference != null)
this.layer = preference.getPresentationLayer() + 1;
else
this.layer = IAnnotationAccessExtension.DEFAULT_LAYER + 1;
this.document = document;
this.issue = issue;
this.isQuickfixable = isQuickfixable;
}
示例2: createAnnotationAccess
@Override
protected IAnnotationAccess createAnnotationAccess() {
return new DefaultMarkerAnnotationAccess() {
@Override
public int getLayer(Annotation annotation) {
if (annotation.isMarkedDeleted()) {
return IAnnotationAccessExtension.DEFAULT_LAYER;
}
return super.getLayer(annotation);
}
};
}
示例3: computeLayer
private static int computeLayer(String annotationType, AnnotationPreferenceLookup lookup)
{
Annotation annotation = new Annotation(annotationType, false, null);
AnnotationPreference preference = lookup.getAnnotationPreference(annotation);
if (preference != null)
{
return preference.getPresentationLayer() + 1;
}
else
{
return IAnnotationAccessExtension.DEFAULT_LAYER + 1;
}
}
示例4: computeLayer
private static int computeLayer(String annotationType, AnnotationPreferenceLookup lookup) {
Annotation annotation= new Annotation(annotationType, false, null);
AnnotationPreference preference= lookup.getAnnotationPreference(annotation);
if (preference != null)
return preference.getPresentationLayer() + 1;
else
return IAnnotationAccessExtension.DEFAULT_LAYER + 1;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:CompilationUnitDocumentProvider.java
示例5: getOrder
protected int getOrder(Annotation annotation) {
if (fAnnotationAccess instanceof IAnnotationAccessExtension) {
IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess;
return extension.getLayer(annotation);
}
return IAnnotationAccessExtension.DEFAULT_LAYER;
}