Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.search.ui
Interface ISearchPageScoreComputer


public interface ISearchPageScoreComputer

Computes a score that is used by the search dialog to find the best fitting page for a selection when opened. The score has no upper limit but must be at least 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.


Field Summary
static int LOWEST
          Lowest possible valid score.
static int UNKNOWN
          Invalid score value indicating a score is unknown or undecided.
 
Method Summary
 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.
 

Field Detail

UNKNOWN

static final int UNKNOWN
Invalid score value indicating a score is unknown or undecided.

See Also:
Constant Field Values

LOWEST

static final int LOWEST
Lowest possible valid score.

See Also:
Constant Field Values
Method Detail

computeScore

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. The search page id appears as the id attribute of the <page> element contributed to the search pages extension point ("org.eclipse.search.searchPages").

Parameters:
pageId - the string id of the page for which the score is computed
input - the object based on which the page should open
Returns:
a score higher or equal to LOWEST, or UNKNOWN if this computer cannot decide

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire