Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 13b5e3e2d9f7f23c8de1bfff6949301071e9adac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*******************************************************************************
 * Copyright (c) 2006, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.jface.text.source;

import org.eclipse.jface.text.quickassist.IQuickAssistAssistant;
import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext;

/**
 * Extension interface for {@link org.eclipse.jface.text.source.ISourceViewer}.<p>
 * It introduces the concept of a quick assist assistant and provides access
 * to the quick assist invocation context. It also gives access to any currently
 * showing annotation hover.</p>
 *
 * @see IQuickAssistAssistant
 * @see IQuickAssistInvocationContext
 * @since 3.2
 */
public interface ISourceViewerExtension3 {

	/**
	 * Returns this viewers quick assist assistant.
	 *
	 * @return the quick assist assistant or <code>null</code> if none is configured
	 * @since 3.2
	 */
	public IQuickAssistAssistant getQuickAssistAssistant();

	/**
	 * Returns this viewer's quick assist invocation context.
	 *
	 * @return the quick assist invocation context or <code>null</code> if none is available
	 */
	IQuickAssistInvocationContext getQuickAssistInvocationContext();

	/**
	 * Returns the currently displayed annotation hover if any, <code>null</code> otherwise.
	 *
	 * @return the currently displayed annotation hover or <code>null</code>
	 */
	IAnnotationHover getCurrentAnnotationHover();

}

Back to the top