Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/ICompletionListener.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, 2007 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.ICompletionListener; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 | |
18 /** | |
19 * A completion listener is informed before the content assistant computes completion proposals. | |
20 * <p> | |
21 * In order to provide backward compatibility for clients of <code>ICompletionListener</code>, extension | |
22 * interfaces are used to provide a means of evolution. The following extension interfaces exist: | |
23 * <ul> | |
24 * <li>{@link dwtx.jface.text.contentassist.ICompletionListenerExtension} since version 3.4 introducing | |
25 * the following functions: | |
26 * <ul> | |
27 * <li>additional notification about restarting the current code assist session</li> | |
28 * </ul> | |
29 * </li> | |
30 * </ul> | |
31 * </p> | |
32 * | |
33 * <p> | |
34 * Clients may implement this interface. | |
35 * </p> | |
36 * | |
37 * @since 3.2 | |
38 */ | |
39 public interface ICompletionListener { | |
40 /** | |
41 * Called when code assist is invoked when there is no current code assist session. | |
42 * | |
43 * @param event the content assist event | |
44 */ | |
45 void assistSessionStarted(ContentAssistEvent event); | |
46 | |
47 /** | |
48 * Called when a code assist session ends (for example, the proposal popup is closed). | |
49 * | |
50 * @param event the content assist event | |
51 */ | |
52 void assistSessionEnded(ContentAssistEvent event); | |
53 | |
54 /** | |
55 * Called when the selection in the proposal popup is changed or if the insert-mode changed. | |
56 * | |
57 * @param proposal the newly selected proposal, possibly <code>null</code> | |
58 * @param smartToggle <code>true</code> if the insert-mode toggle is being pressed, | |
59 * <code>false</code> otherwise | |
60 */ | |
61 void selectionChanged(ICompletionProposal proposal, bool smartToggle); | |
62 } |