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