下面列出了org.eclipse.jface.text.source.IAnnotationAccess#org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
protected IAnnotationAccess createAnnotationAccess() {
return new DefaultMarkerAnnotationAccess() {
@Override
public int getLayer(Annotation annotation) {
if (annotation.isMarkedDeleted()) {
return IAnnotationAccessExtension.DEFAULT_LAYER;
}
return super.getLayer(annotation);
}
};
}
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, ToolBarManager toolBarManager) {
super(parentShell, toolBarManager);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, boolean resizeable) {
super(parentShell, resizeable);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess = new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, ToolBarManager toolBarManager) {
super(parentShell, toolBarManager);
fMarkerAnnotationAccess = new DefaultMarkerAnnotationAccess();
create();
}
protected SourceViewerDecorationSupport createSourceViewerDecorationSupport() {
return new SourceViewerDecorationSupport(getXtextSourceviewer(), null, new DefaultMarkerAnnotationAccess(),
getSharedColors());
}
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, ToolBarManager toolBarManager) {
super(parentShell, toolBarManager);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
public AnnotationInformationControl(Shell parentShell, ToolBarManager toolBarManager) {
super(parentShell, toolBarManager);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}