KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > IEditingSupportRegistry


1 /*******************************************************************************
2  * Copyright (c) 2000, 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;
12
13 /**
14  * A registry for <code>IEditingSupport</code>s.
15  * <p>
16  * This interface is not meant to be implemented outside the JFace text
17  * framework.</p>
18  *
19  * @see IEditingSupport
20  * @since 3.1
21  */

22 public interface IEditingSupportRegistry {
23
24     /**
25      * Register a support with the registry. If the support is already
26      * registered, nothing happens.
27      *
28      * @param support an editor support
29      */

30     public void register(IEditingSupport support);
31
32     /**
33      * Deregister a support with the registry. If the support is not registered,
34      * or <code>support</code> is <code>null</code>, nothing happens.
35      *
36      * @param support the helper to deregister, or <code>null</code>
37      */

38     public void unregister(IEditingSupport support);
39
40     /**
41      * Returns the current editor helpers.
42      *
43      * @return an non- <code>null</code> array of currently registered editor
44      * helpers
45      */

46     public IEditingSupport[] getRegisteredSupports();
47 }
48
Popular Tags