LPEX
3.6.5

com.ibm.lpex.alef
Class LpexLineChangeHover

java.lang.Object
  extended by LineChangeHover
      extended by com.ibm.lpex.alef.LpexLineChangeHover

public class LpexLineChangeHover
extends LineChangeHover

Quick diff hover for LPEX.


Constructor Summary
LpexLineChangeHover()
           
 
Method Summary
protected  String formatSource(String content)
          Overridden to do nothing.
 IInformationControlCreator getHoverControlCreator()
          Returns the hover control creator of this annotation hover.
 Object getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleLines)
          Returns the text to be presented in the hover window for the specified line range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpexLineChangeHover

public LpexLineChangeHover()
Method Detail

getHoverInfo

public Object getHoverInfo(ISourceViewer sourceViewer,
                           ILineRange lineRange,
                           int visibleLines)
Returns the text to be presented in the hover window for the specified line range.

Parameters:
sourceViewer - the LpexSourceViewer this hover is registered with
lineRange - the line range for which information is requested
visibleLines - the number of visible screen rows we can extend over
See Also:
LineChangeHover

formatSource

protected String formatSource(String content)
Overridden to do nothing. org.eclipse.jface.text.source.LineChangeHover does a replacement of tab characters here, not needed in LPEX.

Parameters:
content - the hover content
Returns:
the reformatted hover content (here, unchanged)

getHoverControlCreator

public IInformationControlCreator getHoverControlCreator()
Returns the hover control creator of this annotation hover. The hover creator returned here creates an LpexLineChangeInformationControl.

See Also:
IAnnotationHoverExtension

LPEX
3.6.5

Copyright © 2012 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.