/** * Creates the annotation access for this editor. * * @return the created annotation access */ protected IAnnotationAccess createAnnotationAccess() { return new DefaultMarkerAnnotationAccess(); }
/** * Creates the annotation access for this editor. * * @return the created annotation access */ protected IAnnotationAccess createAnnotationAccess() { return new DefaultMarkerAnnotationAccess(); }
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(); }
public AnnotationInformationControl(Shell parentShell, boolean resizeable) { super(parentShell, resizeable); 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, String statusFieldText) { super(parentShell, statusFieldText); fMarkerAnnotationAccess= new DefaultMarkerAnnotationAccess(); create(); }
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; }
fDelegate= new AnnotationRulerColumn(VERTICAL_RULER_WIDTH, new DefaultMarkerAnnotationAccess()); IPreferenceStore store= getPreferenceStore(); if (store != null && fDelegate instanceof AnnotationRulerColumn) {
fDelegate= new AnnotationRulerColumn(VERTICAL_RULER_WIDTH, new DefaultMarkerAnnotationAccess()); IPreferenceStore store= getPreferenceStore(); if (store != null && fDelegate instanceof AnnotationRulerColumn) {
/** Configures annotation model for spell checking. */ private void configureAsEditor(ISourceViewer viewer, Document document) { IAnnotationAccess annotationAccess = new DefaultMarkerAnnotationAccess(); final SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(viewer, null, annotationAccess, EditorsUI.getSharedTextColors()); Iterator<?> e = new MarkerAnnotationPreferences().getAnnotationPreferences().iterator(); while (e.hasNext()) { support.setAnnotationPreference((AnnotationPreference) e.next()); } support.install(EditorsUI.getPreferenceStore()); viewer.getTextWidget().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { support.uninstall(); } }); AnnotationModel annotationModel = new AnnotationModel(); viewer.setDocument(document, annotationModel); }