129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 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.IEditingSupportRegistry;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 /**
|
|
18 * A registry for <code>IEditingSupport</code>s.
|
|
19 * <p>
|
|
20 * This interface is not meant to be implemented outside the JFace text
|
|
21 * framework.</p>
|
|
22 *
|
|
23 * @see IEditingSupport
|
|
24 * @since 3.1
|
|
25 * @noimplement This interface is not intended to be implemented by clients.
|
|
26 */
|
|
27 public interface IEditingSupportRegistry {
|
|
28
|
|
29 /**
|
|
30 * Register a support with the registry. If the support is already
|
|
31 * registered, nothing happens.
|
|
32 *
|
|
33 * @param support an editor support
|
|
34 */
|
|
35 public void register(IEditingSupport support);
|
|
36
|
|
37 /**
|
|
38 * Deregister a support with the registry. If the support is not registered,
|
|
39 * or <code>support</code> is <code>null</code>, nothing happens.
|
|
40 *
|
|
41 * @param support the helper to deregister, or <code>null</code>
|
|
42 */
|
|
43 public void unregister(IEditingSupport support);
|
|
44
|
|
45 /**
|
|
46 * Returns the current editor helpers.
|
|
47 *
|
|
48 * @return an non- <code>null</code> array of currently registered editor
|
|
49 * helpers
|
|
50 */
|
|
51 public IEditingSupport[] getRegisteredSupports();
|
|
52 }
|