KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > runtime > dynamichelpers > IExtensionChangeHandler


1 /*******************************************************************************
2  * Copyright (c) 2004, 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.dynamichelpers;
12
13 import org.eclipse.core.runtime.IExtension;
14
15 /**
16  * Extension change handlers are notified of changes for a given extension
17  * point in the context of an extension tracker.
18  * <p>
19  * This interface can be used without OSGi running.
20  * </p><p>
21  * This interface is intended to be implemented by clients.
22  * </p>
23  * @since 3.1
24  */

25 public interface IExtensionChangeHandler {
26
27     /**
28      * This method is called whenever an extension conforming to the extension point filter
29      * is being added to the registry. This method does not automatically register objects
30      * to the tracker.
31      *
32      * @param tracker a tracker to which the handler has been registered
33      * @param extension the extension being added
34      */

35     public void addExtension(IExtensionTracker tracker, IExtension extension);
36
37     /**
38      * This method is called after the removal of an extension.
39      *
40      * @param extension the extension being removed
41      * @param objects the objects that were associated with the removed extension
42      */

43     public void removeExtension(IExtension extension, Object JavaDoc[] objects);
44 }
45
Popular Tags