1 /*******************************************************************************
2  * Copyright (c) 2003, 2008 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.core.runtime;
15 
16 /**
17  * An extension delta represents changes to the extension registry.
18  * <p>
19  * This interface can be used without OSGi running.
20  * </p><p>
21  * This interface is not intended to be implemented by clients.
22  * </p>
23  * @since 3.0
24  * @noimplement This interface is not intended to be implemented by clients.
25  */
26 public interface IExtensionDelta {
27 	/**
28 	 * Delta kind constant indicating that an extension has been added to an
29 	 * extension point.
30 	 * @see IExtensionDelta#getKind()
31 	 */
32 	public int ADDED = 1;
33 	/**
34 	 * Delta kind constant indicating that an extension has been removed from an
35 	 * extension point.
36 	 * @see IExtensionDelta#getKind()
37 	 */
38 	public int REMOVED = 2;
39 
40 	/**
41 	 * The kind of this extension delta.
42 	 *
43 	 * @return the kind of change this delta represents
44 	 * @see #ADDED
45 	 * @see #REMOVED
46 	 */
getKind()47 	public int getKind();
48 
49 	/**
50 	 * Returns the affected extension.
51 	 *
52 	 * @return the affected extension
53 	 */
getExtension()54 	public IExtension getExtension();
55 
56 	/**
57 	 * Returns the affected extension point.
58 	 *
59 	 * @return the affected extension point
60 	 */
getExtensionPoint()61 	public IExtensionPoint getExtensionPoint();
62 }
63