mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Updated javadoc and comments
This commit is contained in:
parent
d92de82c59
commit
b2d2eb2e19
1 changed files with 11 additions and 5 deletions
|
@ -30,14 +30,20 @@ import org.eclipse.cdt.ui.PreferenceConstants;
|
||||||
import org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover;
|
import org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BestMatchHover.
|
* 'Fake' hover used to choose the best available hover.
|
||||||
* This is not a real hover, but instead, it is always the first hover used
|
* This hover is always the first hover used and will delegate the hover
|
||||||
* and it will choose the best of the real hovers. To choose the best hover,
|
* request to the best of the real hovers. The 'best' hover is the first
|
||||||
* we simply find the first hover that returns some text. This implies
|
* hover that returns some text for the specified parameters.
|
||||||
* that the order of hovers is important and must be preserved. (Bug 294812)
|
*
|
||||||
|
* Note that hovers are ordered by plugin dependency, with the most specific
|
||||||
|
* hovers being placed before less specific ones.
|
||||||
*/
|
*/
|
||||||
public class BestMatchHover extends AbstractCEditorTextHover {
|
public class BestMatchHover extends AbstractCEditorTextHover {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Note that hover ordering is very important to be preserved by this
|
||||||
|
* class. (Bug 294812)
|
||||||
|
*/
|
||||||
private List<CEditorTextHoverDescriptor> fTextHoverSpecifications;
|
private List<CEditorTextHoverDescriptor> fTextHoverSpecifications;
|
||||||
private List<ITextHover> fInstantiatedTextHovers;
|
private List<ITextHover> fInstantiatedTextHovers;
|
||||||
private ITextHover fBestHover;
|
private ITextHover fBestHover;
|
||||||
|
|
Loading…
Add table
Reference in a new issue