/******************************************************************************* * Copyright (c) 2005, 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.jface.text.contentassist; /** * Extends * {@link org.eclipse.jface.text.contentassist.ICompletionProposal} with * the following functions: * * * @since 3.1 */ public interface ICompletionProposalExtension4 { /** * Returns true if the proposal may be automatically * inserted, false otherwise. Automatic insertion can * happen if the proposal is the only one being proposed, in which * case the content assistant may decide to not prompt the user with * a list of proposals, but simply insert the single proposal. A * proposal may veto this behavior by returning false * to a call to this method. * * @return true if the proposal may be inserted * automatically, false if not */ boolean isAutoInsertable(); }