protected ProjectionSupport installProjectionSupport(ProjectionViewer projectionViewer) { ProjectionSupport projectionSupport = new ProjectionSupport(projectionViewer, getAnnotationAccess(), getSharedColors()); projectionSupport.addSummarizableAnnotationType(INFO_ANNOTATION_TYPE); projectionSupport.addSummarizableAnnotationType(WARNING_ANNOTATION_TYPE); projectionSupport.addSummarizableAnnotationType(ERROR_ANNOTATION_TYPE); projectionSupport.setAnnotationPainterDrawingStrategy(projectionAnnotationDrawingStrategy); projectionSupport.install(); return projectionSupport; }
/** * Creates, configures, and returns a <code>ProjectionSupport</code> * object for this editor. * * @return the <code>ProjectSupport</code> object to use with this editor */ protected ProjectionSupport createProjectionSupport() { ProjectionViewer viewer = (ProjectionViewer) getSourceViewer(); ProjectionSupport projSupport = new ProjectionSupport( viewer, getAnnotationAccess(), getSharedColors() ); projSupport.addSummarizableAnnotationType( "org.eclipse.ui.workbench.texteditor.error" ); //$NON-NLS-1$ projSupport.addSummarizableAnnotationType( "org.eclipse.ui.workbench.texteditor.warning" ); //$NON-NLS-1$ projSupport.install(); return projSupport; }
Object annotationType= annotationPreference.getAnnotationType(); if (annotationType instanceof String) fProjectionSupport.addSummarizableAnnotationType((String)annotationType); fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$ fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
Object annotationType= annotationPreference.getAnnotationType(); if (annotationType instanceof String) fProjectionSupport.addSummarizableAnnotationType((String)annotationType); fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$ fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$ fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$ fProjectionSupport.setHoverControlCreator(new IInformationControlCreator() { public IInformationControl createInformationControl(Shell shell) {