1 /******************************************************************************* 2 * Copyright (c) 2000, 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.pde.core.plugin; 12 13 import org.eclipse.core.runtime.CoreException; 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 } 41