01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.core.plugin;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.pde.core.IIdentifiable;
14:
15: /**
16: * Classes that implement this interface model the extension
17: * element found in the plug-in or fragment manifest.
18: */
19: public interface IPluginExtension extends IPluginParent, IIdentifiable {
20: /**
21: * A name of the property that will be used to
22: * notify about the "point" change
23: */
24: String P_POINT = "point"; //$NON-NLS-1$
25:
26: /**
27: * Returns the full Id of the extension point that this extension
28: * is plugged into.
29: */
30: String getPoint();
31:
32: /**
33: * Returns the schema for the extension point that this extension
34: * is plugged into or <samp>null</samp> if not found.
35: * <p>This method is an implementation detail - schema object
36: * is not needed for clients outside PDE and should not be used.
37: */
38: Object getSchema();
39:
40: /**
41: * Sets the value of the extension point Id
42: * This method will throw a CoreException if
43: * this model is not editable.
44: * @param point the new extension point Id
45: */
46: void setPoint(String point) throws CoreException;
47: }
|