当前位置: 首页>>代码示例>>Java>>正文


Java IAnnotationAccessExtension.DEFAULT_LAYER属性代码示例

本文整理汇总了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;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:13,代码来源:XtextAnnotation.java

示例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);
		}
	};
}
 
开发者ID:cplutte,项目名称:bts,代码行数:12,代码来源:XtextEditor.java

示例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;
	}
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:13,代码来源:ProblemAnnotation.java

示例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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:7,代码来源:AnnotationExpandHover.java


注:本文中的org.eclipse.jface.text.source.IAnnotationAccessExtension.DEFAULT_LAYER属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。