Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/ICompletionProposalExtension4.d @ 129:eb30df5ca28b
Added JFace Text sources
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 23 Aug 2008 19:10:48 +0200 |
parents | |
children | c4fb132a086c |
comparison
equal
deleted
inserted
replaced
128:8df1d4193877 | 129:eb30df5ca28b |
---|---|
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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.text.contentassist.ICompletionProposalExtension4; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 /** | |
18 * Extends | |
19 * {@link dwtx.jface.text.contentassist.ICompletionProposal} with | |
20 * the following functions: | |
21 * <ul> | |
22 * <li>specify whether a proposal is automatically insertable</li> | |
23 * </ul> | |
24 * | |
25 * @since 3.1 | |
26 */ | |
27 public interface ICompletionProposalExtension4 { | |
28 | |
29 /** | |
30 * Returns <code>true</code> if the proposal may be automatically | |
31 * inserted, <code>false</code> otherwise. Automatic insertion can | |
32 * happen if the proposal is the only one being proposed, in which | |
33 * case the content assistant may decide to not prompt the user with | |
34 * a list of proposals, but simply insert the single proposal. A | |
35 * proposal may veto this behavior by returning <code>false</code> | |
36 * to a call to this method. | |
37 * | |
38 * @return <code>true</code> if the proposal may be inserted | |
39 * automatically, <code>false</code> if not | |
40 */ | |
41 bool isAutoInsertable(); | |
42 } |