blob: 885c099e2009d77fa09fe12112594ebf5c0dc2dd (
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
|
/*******************************************************************************
* Copyright (c) 2000, 2004 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.source;
/**
* Provides the information to be displayed in a hover popup window
* which appears over the presentation area of annotations. Clients
* may implement this interface.
*/
public interface IAnnotationHover {
/**
* Returns the text which should be presented in the a
* hover popup window. This information is requested based on
* the specified line number.
*
* @param sourceViewer the source viewer this hover is registered with
* @param lineNumber the line number for which information is requested
* @return the requested information or <code>null</code> if no such information exists
*/
String getHoverInfo(ISourceViewer sourceViewer, int lineNumber);
}
|