Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ded0f494fe0c85f8a58c088c08a9ea1c971056bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
 * Copyright (c) 2004, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.runtime.dynamichelpers;

import org.eclipse.core.runtime.IExtension;

/**
 * Extension change handlers are notified of changes for a given extension 
 * point in the context of an extension tracker.
 * <p>
 * This interface can be used without OSGi running.
 * </p><p>
 * This interface is intended to be implemented by clients.
 * </p>
 * @since 3.1
 */
public interface IExtensionChangeHandler {

	/**
	 * This method is called whenever an extension conforming to the extension point filter
	 * is being added to the registry. This method does not automatically register objects 
	 * to the tracker.
	 * 
	 * @param tracker a tracker to which the handler has been registered
	 * @param extension the extension being added
	 */
	public void addExtension(IExtensionTracker tracker, IExtension extension);

	/** 
	 * This method is called after the removal of an extension.
	 * 
	 * @param extension the extension being removed
	 * @param objects the objects that were associated with the removed extension 
	 */
	public void removeExtension(IExtension extension, Object[] objects);
}

Back to the top