KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > contentassist > ICompletionProposalExtension4


1 /*******************************************************************************
2  * Copyright (c) 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.jface.text.contentassist;
12
13 /**
14  * Extends
15  * {@link org.eclipse.jface.text.contentassist.ICompletionProposal} with
16  * the following functions:
17  * <ul>
18  * <li>specify whether a proposal is automatically insertable</li>
19  * </ul>
20  *
21  * @since 3.1
22  */

23 public interface ICompletionProposalExtension4 {
24
25     /**
26      * Returns <code>true</code> if the proposal may be automatically
27      * inserted, <code>false</code> otherwise. Automatic insertion can
28      * happen if the proposal is the only one being proposed, in which
29      * case the content assistant may decide to not prompt the user with
30      * a list of proposals, but simply insert the single proposal. A
31      * proposal may veto this behavior by returning <code>false</code>
32      * to a call to this method.
33      *
34      * @return <code>true</code> if the proposal may be inserted
35      * automatically, <code>false</code> if not
36      */

37     boolean isAutoInsertable();
38 }
39
Popular Tags