Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 077c9f15f7ef6413b4df50e7650168005d2e2894 (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
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.text.information;

 
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextViewer;


/**
 * Extension interface for <code>IInformationProvider</code> to provide
 * the element for a given subject.
 *
 * @see org.eclipse.jface.text.information.IInformationProvider
 * @since 2.1
 */
public interface IInformationProviderExtension {
	
	/**
	 * Returns the element for the given subject or <code>null</code> if
	 * no element is available.
	 * <p>
	 * Implementers should ignore the text returned by <code>IInformationProvider.getInformation()</code>.
	 * </p>
	 * 
	 * @param textViewer the viewer in whose document the subject is contained
	 * @param subject the text region constituting the information subject
	 * @return the element for the subject
	 * 
	 * @see IInformationProvider#getInformation(ITextViewer, IRegion)
	 * @see org.eclipse.jface.text.ITextViewer
	 */
	Object getInformation2(ITextViewer textViewer, IRegion subject);
}

Back to the top