本文整理汇总了Java中org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess类的典型用法代码示例。如果您正苦于以下问题:Java DefaultMarkerAnnotationAccess类的具体用法?Java DefaultMarkerAnnotationAccess怎么用?Java DefaultMarkerAnnotationAccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultMarkerAnnotationAccess类属于org.eclipse.ui.texteditor包,在下文中一共展示了DefaultMarkerAnnotationAccess类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureAnnotationPreferences
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
private SourceViewerDecorationSupport configureAnnotationPreferences() {
ISharedTextColors textColors = EditorsUI.getSharedTextColors();
IAnnotationAccess annotationAccess = new DefaultMarkerAnnotationAccess();
final SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(
sourceViewer, null, annotationAccess, textColors);
List annotationPreferences = new MarkerAnnotationPreferences()
.getAnnotationPreferences();
Iterator e = annotationPreferences.iterator();
while (e.hasNext())
support.setAnnotationPreference((AnnotationPreference) e.next());
support.install(EditorsUI.getPreferenceStore());
return support;
}
示例2: createAnnotationAccess
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
@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: createXtextSourceViewer
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
protected void createXtextSourceViewer() {
sourceviewer = new XtextSourceViewerEx(styledText, preferenceStoreAccess.getPreferenceStore());
sourceviewer.configure(configuration);
sourceviewer.setDocument(document, new AnnotationModel());
SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(sourceviewer, null,
new DefaultMarkerAnnotationAccess(), getSharedColors());
configureSourceViewerDecorationSupport(support);
}
示例4: AnnotationInformationControl
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess = new DefaultMarkerAnnotationAccess();
create();
}
示例5: AnnotationInformationControl
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}
示例6: createSourceViewerDecorationSupport
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
protected SourceViewerDecorationSupport createSourceViewerDecorationSupport() {
return new SourceViewerDecorationSupport(getXtextSourceviewer(), null, new DefaultMarkerAnnotationAccess(),
getSharedColors());
}
示例7: AnnotationInformationControl
import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess; //导入依赖的package包/类
public AnnotationInformationControl(Shell parentShell, String statusFieldText) {
super(parentShell, statusFieldText);
fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess();
create();
}