blob: 8509c701644eb04b1461f9d54615d901df35b4e9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Martin Kloesch and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License_Identifier: EPL-2.0
*
* Contributors:
* Martin Kloesch - initial API and implementation
* Christian Pontesegger - rewrite of this interface
*******************************************************************************/
package org.eclipse.ease.ui.completion.provider;
import java.util.Collection;
import org.eclipse.ease.ICompletionContext;
import org.eclipse.ease.ui.completion.ScriptCompletionProposal;
public interface ICompletionProvider {
/**
* Calculate all matching proposals.
*
* @param context
* with necessary information to calculate proposals.
* @return Collection of matching proposals.
*/
Collection<ScriptCompletionProposal> getProposals(ICompletionContext context);
/**
* Query indicating that this providers completion proposals should be taken into account.
*
* @param context
* with necessary information to calculate proposals.
* @return <code>true</code> when active
*/
boolean isActive(ICompletionContext context);
}