129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2005 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 module dwtx.jface.text.information.IInformationProviderExtension;
|
|
14
|
131
|
15 import dwtx.jface.text.information.InformationPresenter; // packageimport
|
|
16 import dwtx.jface.text.information.IInformationProvider; // packageimport
|
|
17 import dwtx.jface.text.information.IInformationPresenterExtension; // packageimport
|
|
18 import dwtx.jface.text.information.IInformationProviderExtension2; // packageimport
|
|
19 import dwtx.jface.text.information.IInformationPresenter; // packageimport
|
|
20
|
|
21
|
129
|
22 import dwt.dwthelper.utils;
|
|
23
|
|
24
|
|
25 import dwtx.jface.text.IRegion;
|
|
26 import dwtx.jface.text.ITextViewer;
|
|
27
|
|
28
|
|
29 /**
|
|
30 * Extends {@link dwtx.jface.text.information.IInformationProvider} with
|
|
31 * the ability to provide the element for a given subject.
|
|
32 *
|
|
33 * @see dwtx.jface.text.information.IInformationProvider
|
|
34 * @since 2.1
|
|
35 */
|
|
36 public interface IInformationProviderExtension {
|
|
37
|
|
38 /**
|
|
39 * Returns the element for the given subject or <code>null</code> if
|
|
40 * no element is available.
|
|
41 * <p>
|
|
42 * Implementers should ignore the text returned by {@link IInformationProvider#getInformation(ITextViewer, IRegion)}.
|
|
43 * </p>
|
|
44 *
|
|
45 * @param textViewer the viewer in whose document the subject is contained
|
|
46 * @param subject the text region constituting the information subject
|
|
47 * @return the element for the subject
|
|
48 *
|
|
49 * @see IInformationProvider#getInformation(ITextViewer, IRegion)
|
|
50 * @see dwtx.jface.text.ITextViewer
|
|
51 */
|
|
52 Object getInformation2(ITextViewer textViewer, IRegion subject);
|
|
53 }
|