Class LineContentCodeMining
java.lang.Object
org.eclipse.jface.text.codemining.AbstractCodeMining
org.eclipse.jface.text.codemining.LineContentCodeMining
- All Implemented Interfaces:
ICodeMining
- Direct Known Subclasses:
LineEndCodeMining
Abstract class for line content code mining.
- Since:
- 3.13
-
Constructor Summary
ConstructorDescriptionLineContentCodeMining
(Position position, ICodeMiningProvider provider) CodeMining constructor to locate the code mining in a given position.LineContentCodeMining
(Position position, ICodeMiningProvider provider, Consumer<MouseEvent> action) CodeMining constructor to locate the code mining in a given position. -
Method Summary
Methods inherited from class org.eclipse.jface.text.codemining.AbstractCodeMining
dispose, doResolve, draw, getAction, getLabel, getPosition, getProvider, isResolved, resolve, setLabel
-
Constructor Details
-
LineContentCodeMining
CodeMining constructor to locate the code mining in a given position.- Parameters:
position
- the position where the mining must be drawn.provider
- the owner codemining provider which creates this mining.
-
LineContentCodeMining
public LineContentCodeMining(Position position, ICodeMiningProvider provider, Consumer<MouseEvent> action) CodeMining constructor to locate the code mining in a given position.- Parameters:
position
- the position where the mining must be drawn.provider
- the owner codemining provider which creates this mining.action
- the action to execute when mining is clicked and null otherwise.
-