comparison dwtx/jface/text/source/ISourceViewerExtension3.d @ 129:eb30df5ca28b

Added JFace Text sources
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Aug 2008 19:10:48 +0200
parents
children c4fb132a086c
comparison
equal deleted inserted replaced
128:8df1d4193877 129:eb30df5ca28b
1 /*******************************************************************************
2 * Copyright (c) 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13
14 module dwtx.jface.text.source.ISourceViewerExtension3;
15
16 import dwt.dwthelper.utils;
17
18 import dwtx.jface.text.quickassist.IQuickAssistAssistant;
19 import dwtx.jface.text.quickassist.IQuickAssistInvocationContext;
20
21 /**
22 * Extension interface for {@link dwtx.jface.text.source.ISourceViewer}.<p>
23 * It introduces the concept of a quick assist assistant and provides access
24 * to the quick assist invocation context. It also gives access to any currently
25 * showing annotation hover.</p>
26 *
27 * @see IQuickAssistAssistant
28 * @see IQuickAssistInvocationContext
29 * @since 3.2
30 */
31 public interface ISourceViewerExtension3 {
32
33 /**
34 * Returns this viewers quick assist assistant.
35 *
36 * @return the quick assist assistant or <code>null</code> if none is configured
37 * @since 3.2
38 */
39 public IQuickAssistAssistant getQuickAssistAssistant();
40
41 /**
42 * Returns this viewer's quick assist invocation context.
43 *
44 * @return the quick assist invocation context or <code>null</code> if none is available
45 */
46 IQuickAssistInvocationContext getQuickAssistInvocationContext();
47
48 /**
49 * Returns the currently displayed annotation hover if any, <code>null</code> otherwise.
50 *
51 * @return the currently displayed annotation hover or <code>null</code>
52 */
53 IAnnotationHover getCurrentAnnotationHover();
54
55 }