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
24 public class ViewerConfiguration
extends SourceViewerConfiguration
{
26 private IAnnotationHover annotationHover
= new DefaultAnnotationHover();
29 public IAnnotationHover
getAnnotationHover(ISourceViewer sourceViewer
) {
30 return annotationHover
;
34 // * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)
37 // public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
38 // ContentAssistant contentAssistant = new ContentAssistant();
39 // IContentAssistProcessor assistProcessor = new NameCompletionProcessor();
40 // contentAssistant.setContentAssistProcessor(assistProcessor, NAME);
41 // contentAssistant.setContentAssistProcessor(assistProcessor, IDocument.DEFAULT_CONTENT_TYPE);
42 // contentAssistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
43 // return contentAssistant;