Class DocumentFooterCodeMining
java.lang.Object
org.eclipse.jface.text.codemining.AbstractCodeMining
org.eclipse.jface.text.codemining.DocumentFooterCodeMining
- All Implemented Interfaces:
ICodeMining
A code mining rendered at the start of the line, located at the very end of the document.
- Since:
- 3.28
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentFooterCodeMining
(IDocument document, ICodeMiningProvider provider, Consumer<MouseEvent> action) -
Method Summary
Modifier and TypeMethodDescriptiondraw
(GC gc, StyledText textWidget, Color color, int x, int y) Draw theAbstractCodeMining.getLabel()
of mining with gray color.Methods inherited from class org.eclipse.jface.text.codemining.AbstractCodeMining
dispose, doResolve, getAction, getLabel, getPosition, getProvider, isResolved, resolve, setLabel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.text.codemining.ICodeMining
getMouseHover, getMouseMove, getMouseOut
-
Constructor Details
-
DocumentFooterCodeMining
public DocumentFooterCodeMining(IDocument document, ICodeMiningProvider provider, Consumer<MouseEvent> action)
-
-
Method Details
-
draw
Description copied from class:AbstractCodeMining
Draw theAbstractCodeMining.getLabel()
of mining with gray color. User can override this method to draw anything.- Specified by:
draw
in interfaceICodeMining
- Overrides:
draw
in classAbstractCodeMining
- Parameters:
gc
- the graphics contexttextWidget
- the text widget to draw oncolor
- the color of the linex
- the x position of the annotationy
- the y position of the annotation- Returns:
- the size of the draw of mining.
-