2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.editor
;
12 import org
.eclipse
.jface
.text
.source
.DefaultAnnotationHover
;
13 import org
.eclipse
.jface
.text
.source
.IAnnotationHover
;
14 import org
.eclipse
.jface
.text
.source
.ISourceViewer
;
15 import org
.eclipse
.jface
.text
.source
.SourceViewerConfiguration
;
18 * Global configuration object for all viewers
23 public class ViewerConfiguration
extends SourceViewerConfiguration
{
25 private IAnnotationHover annotationHover
= new DefaultAnnotationHover();
28 public IAnnotationHover
getAnnotationHover(ISourceViewer sourceViewer
) {
29 return annotationHover
;
33 // public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
34 // ContentAssistant contentAssistant = new ContentAssistant();
35 // IContentAssistProcessor assistProcessor = new NameCompletionProcessor();
36 // contentAssistant.setContentAssistProcessor(assistProcessor, NAME);
37 // contentAssistant.setContentAssistProcessor(assistProcessor, IDocument.DEFAULT_CONTENT_TYPE);
38 // contentAssistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
39 // return contentAssistant;