KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > runtime > IExtensionDelta


1 /*******************************************************************************
2  * Copyright (c) 2003, 2006 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.core.runtime;
12
13 /**
14  * An extension delta represents changes to the extension registry.
15  * <p>
16  * This interface can be used without OSGi running.
17  * </p><p>
18  * This interface is not intended to be implemented by clients.
19  * </p>
20  * @since 3.0
21  */

22 public interface IExtensionDelta {
23     /**
24      * Delta kind constant indicating that an extension has been added to an
25      * extension point.
26      * @see IExtensionDelta#getKind()
27      */

28     public int ADDED = 1;
29     /**
30      * Delta kind constant indicating that an extension has been removed from an
31      * extension point.
32      * @see IExtensionDelta#getKind()
33      */

34     public int REMOVED = 2;
35
36     /**
37      * The kind of this extension delta.
38      *
39      * @return the kind of change this delta represents
40      * @see #ADDED
41      * @see #REMOVED
42      */

43     public int getKind();
44
45     /**
46      * Returns the affected extension.
47      *
48      * @return the affected extension
49      */

50     public IExtension getExtension();
51
52     /**
53      * Returns the affected extension point.
54      *
55      * @return the affected extension point
56      */

57     public IExtensionPoint getExtensionPoint();
58 }
59
Popular Tags