IKeyBindingService service = this.getSite().getKeyBindingService();
service.setScopes(new String[]{EDITOR_CONTEXT});
this.setBackgroundColor();
// this.fSourceViewerDecorationSupport.install(getPreferenceStore());
ProjectionViewer projectionViewer = (ProjectionViewer) getSourceViewer();
this.fProjectionSupport = new ProjectionSupport(projectionViewer,
getAnnotationAccess(), getSharedColors());
this.fProjectionSupport
.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error");
this.fProjectionSupport
.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.task");
this.fProjectionSupport
.addSummarizableAnnotationType("org.cfeclipse.cfml.parserProblemAnnotation");
this.fProjectionSupport
.addSummarizableAnnotationType("org.cfeclipse.cfml.parserWarningAnnotation");
this.fProjectionSupport
.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning");
this.fProjectionSupport
.addSummarizableAnnotationType("org.cfeclipse.cfml.occurrenceAnnotation");
this.fProjectionSupport.setHoverControlCreator(new IInformationControlCreator() {
public IInformationControl createInformationControl(Shell shell) {
IInformationControl returnIInformationControl = new DefaultInformationControl(
shell);
return returnIInformationControl;
}
});
this.fProjectionSupport.install();
// ensure decoration support has been created and configured.
getSourceViewerDecorationSupport(getSourceViewer());
//Object lay = parent.getLayoutData();
//System.out.println(lay.getClass());
//one.setToolTipText("This is tab one");
// one.setControl(getTabOneControl(tabFolder));
//two.setToolTipText("This is tab two");
// two.setControl(getTabTwoControl(tabFolder));
//three.setToolTipText("This is tab three");
// three.setControl(getTabThreeControl(tabFolder));
//four.setToolTipText("This is tab four");
projectionViewer.doOperation(ProjectionViewer.TOGGLE);
this.foldingSetter = new CodeFoldingSetter(this);
this.foldingSetter.docChanged(true);
// TODO: If we set this directly the projection fViewer loses track of the