Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.source
Interface IAnnotationHoverExtension

All Known Implementing Classes:
LineChangeHover

public interface IAnnotationHoverExtension

Extension interface for IAnnotationHover for

  • providing its own information control creator
  • providing the range of lines for which the hover for a given line is valid
  • providing whether the information control can interact with the mouse cursor

Since:
3.0
See Also:
IInformationControlCreator, IAnnotationHover

Method Summary
 boolean canHandleMouseCursor ()
          Returns whether the provided information control can interact with the mouse cursor.
  IInformationControlCreator getHoverControlCreator ()
          Returns the hover control creator of this annotation hover.
  Object getHoverInfo ( ISourceViewer sourceViewer, ILineRange lineRange, int visibleNumberOfLines)
          Returns the object which should be presented in the a hover popup window.
  ILineRange getHoverLineRange ( ISourceViewer viewer, int lineNumber)
          Returns the range of lines that include the given line number for which the same hover information is valid.
 

Method Detail

getHoverControlCreator

IInformationControlCreator getHoverControlCreator()
Returns the hover control creator of this annotation hover.

Returns:
the hover control creator

canHandleMouseCursor

boolean canHandleMouseCursor()
Returns whether the provided information control can interact with the mouse cursor. I.e. the hover must implement custom information control management.

Returns:
true if the mouse cursor can be handled

getHoverInfo

Object getHoverInfo(
ISourceViewer sourceViewer,
                    
ILineRange lineRange,
                    int visibleNumberOfLines)
Returns the object which should be presented in the a hover popup window. The information is requested based on the specified line range.

Parameters:
sourceViewer - the source viewer this hover is registered with
lineRange - the line range for which information is requested
visibleNumberOfLines - the number of visible lines
Returns:
the requested information or null if no such information exists

getHoverLineRange

ILineRange getHoverLineRange(
ISourceViewer viewer,
                             int lineNumber)
Returns the range of lines that include the given line number for which the same hover information is valid.

Parameters:
viewer - the viewer which the hover is queried for
lineNumber - the line number of the line for which a hover is displayed for
Returns:
the computed line range or null for no range

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire