129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 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.IContentAssistantExtension4;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 import dwtx.core.commands.IHandler;
|
|
18
|
|
19
|
|
20 /**
|
|
21 * Extends {@link dwtx.jface.text.contentassist.IContentAssistant} with
|
|
22 * the following function:
|
|
23 * <ul>
|
|
24 * <li>allows to get a handler for the given command identifier</li>
|
|
25 * </ul>
|
|
26 *
|
|
27 * @since 3.4
|
|
28 */
|
|
29 public interface IContentAssistantExtension4 {
|
|
30
|
|
31 /**
|
|
32 * Returns the handler for the given command identifier.
|
|
33 * <p>
|
|
34 * The same handler instance will be returned when called a more than once
|
|
35 * with the same command identifier.
|
|
36 * </p>
|
|
37 *
|
|
38 * @param commandId the command identifier
|
|
39 * @return the handler for the given command identifier
|
|
40 * @throws IllegalArgumentException if the command is not supported by this
|
|
41 * content assistant
|
|
42 * @throws IllegalStateException if called when this content assistant is
|
|
43 * uninstalled
|
|
44 */
|
|
45 IHandler getHandler(String commandId);
|
|
46
|
|
47 }
|