public interface ISearchPageScoreComputer
LOWEST. Higher values means the page is better
suited for the given selection input.
For example, a Java-specific search page score computer could test if the page is a Java search page and returns high scores for Java elements as selection input. Intended to be implemented.
| Modifier and Type | Field and Description |
|---|---|
static int |
LOWEST
Lowest possible valid score.
|
static int |
UNKNOWN
Invalid score value indicating a score is unknown or undecided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeScore(String pageId,
Object input)
Computes and returns a score indicating how good the page with the given
id can handle the given input element.
|
static final int UNKNOWN
static final int LOWEST
int computeScore(String pageId, Object input)
id attribute of the
<page> element contributed to the
search pages extension point ("org.eclipse.search.searchPages").pageId - the string id of the page for which the score is computedinput - the object based on which the page should openLOWEST, or
UNKNOWN if this computer cannot decideGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.