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:
14: /**
15: * A model object that represents the content of the plugin.xml
16: * file.
17: */
18: public interface IPlugin extends IPluginBase {
19: /**
20: * A property that will be used when the plug-in activator
21: * field is changed.
22: */
23: String P_CLASS_NAME = "class"; //$NON-NLS-1$
24:
25: /**
26: * Returns a plug-in activator class name
27: * @return plug-in activator class name or <samp>null</samp> if not specified.
28: */
29: String getClassName();
30:
31: /**
32: * Sets the name of the plug-in activator class.
33: * This method will throw a CoreException
34: * if the model is not editable.
35: *
36: * @param className the new class name
37: */
38: void setClassName(String className) throws CoreException;
39:
40: }
|