mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Restore deprecated ICompletionContributor
This commit is contained in:
parent
29a0119ac0
commit
e6e9eda167
1 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,48 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2008 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.ui.text.contentassist;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.jface.text.ITextViewer;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.ASTCompletionNode;
|
||||
import org.eclipse.cdt.core.model.IWorkingCopy;
|
||||
|
||||
/**
|
||||
* This interface must be implemented by clients extending the extension point
|
||||
* <tt>org.eclipse.cdt.core.completionContributors</tt>.
|
||||
*
|
||||
* @deprecated Clients should extend the new extension point
|
||||
* <tt>completionProprosalComputer</tt> and implement interface
|
||||
* {@link ICompletionProposalComputer}
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ICompletionContributor {
|
||||
|
||||
/**
|
||||
* This method allows the contributor to add to the list of proposals
|
||||
*
|
||||
* @param viewer the text viewer where completion is occuring
|
||||
* @param offset the offset into the text where the completion is occuring
|
||||
* @param completionNode the completion node produced by the parser for the offset
|
||||
* @param proposals the current list of proposals. This method should add any additional
|
||||
* proposals to this list.
|
||||
*/
|
||||
@SuppressWarnings("unchecked") // no need to change, it's deprecated
|
||||
void contributeCompletionProposals(ITextViewer viewer,
|
||||
int offset,
|
||||
IWorkingCopy workingCopy,
|
||||
ASTCompletionNode completionNode,
|
||||
String prefix,
|
||||
List proposals);
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue