automated build configuration is on its way
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / ViewerConfiguration.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.editor;
11
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;
16
17 /**
18 * Global configuration object for all viewers
19 *
20 * @author p.ciardelli
21 * @created 22.01.2009
22 * @version 1.0
23 */
24 public class ViewerConfiguration extends SourceViewerConfiguration {
25
26 private IAnnotationHover annotationHover = new DefaultAnnotationHover();
27
28 /** {@inheritDoc} */
29 public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
30 return annotationHover;
31 }
32
33 // /* (non-Javadoc)
34 // * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)
35 // */
36 // @Override
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;
44 // }
45
46
47 }