Project

General

Profile

Download (1.43 KB) Statistics
| Branch: | Tag: | Revision:
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
 */
23
public class ViewerConfiguration extends SourceViewerConfiguration {
24

    
25
	private IAnnotationHover annotationHover = new DefaultAnnotationHover();
26

    
27
	@Override
28
    public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
29
		return annotationHover;
30
	}
31

    
32
//	@Override
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;
40
//	}
41

    
42

    
43
}
(9-9/9)