01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.ui.text.java;
11:
12: import org.eclipse.jface.text.contentassist.ICompletionProposal;
13:
14: /**
15: * A completion proposal with a relevance value.
16: * The relevance value is used to sort the completion proposals. Proposals with higher relevance
17: * should be listed before proposals with lower relevance.
18: * <p>
19: * This interface can be implemented by clients.
20: * </p>
21: *
22: * @see org.eclipse.jface.text.contentassist.ICompletionProposal
23: * @since 2.1
24: */
25: public interface IJavaCompletionProposal extends ICompletionProposal {
26:
27: /**
28: * Returns the relevance of this completion proposal.
29: * <p>
30: * The relevance is used to determine if this proposal is more
31: * relevant than another proposal.</p>
32: *
33: * @return the relevance of this completion proposal in the range of [0, 100]
34: */
35: int getRelevance();
36:
37: }
|