1 11 package org.eclipse.pde.internal.ui.model.plugin; 12 13 import org.eclipse.core.runtime.*; 14 import org.eclipse.pde.core.plugin.*; 15 16 public class PluginNode extends PluginBaseNode implements IPlugin { 17 18 private static final long serialVersionUID = 1L; 19 20 23 public String getClassName() { 24 return getXMLAttributeValue(P_CLASS_NAME); 25 } 26 29 public void setClassName(String className) throws CoreException { 30 setXMLAttribute(P_CLASS_NAME, className); 31 } 32 33 36 protected String [] getSpecificAttributes() { 37 String classname = getClassName(); 38 if (classname != null && classname.trim().length() > 0) 39 return new String [] {" " + P_CLASS_NAME + "=\"" + classname + "\""}; return new String [0]; 41 } 42 public boolean hasExtensibleAPI() { 43 return false; 44 } 45 46 } 47 | Popular Tags |