1 11 package org.eclipse.pde.internal.core.ifeature; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.pde.core.plugin.IPluginModelBase; 15 18 public interface IFeature extends IFeatureObject, IVersionable, IEnvironment { 19 23 public static final String P_DESCRIPTION = "description"; 28 public static final String P_COPYRIGHT = "copyright"; 33 public static final String P_LICENSE = "license"; 38 public static final String P_PROVIDER = "provider"; 43 public static final String P_IMAGE = "image"; 48 public static final String P_URL = "url"; 50 public static final String P_INSTALL_HANDLER = "installHandler"; 52 public static final String P_PRIMARY = "primary"; public static final String P_EXCLUSIVE = "exclusive"; public static final String P_PLUGIN = "plugin"; 56 public static final String P_COLLOCATION_AFFINITY = "colocation-affinity"; public static final String P_APPLICATION = "application"; 59 public static final int INFO_DESCRIPTION = 0; 60 public static final int INFO_COPYRIGHT = 1; 61 public static final int INFO_LICENSE = 2; 62 63 public static final String [] INFO_TAGS = 64 { "description", "copyright", "license" }; 72 public void addPlugins(IFeaturePlugin[] plugins) throws CoreException; 73 80 public void addData(IFeatureData[] entries) throws CoreException; 81 82 89 public void addIncludedFeatures(IFeatureChild[] features) 90 throws CoreException; 91 92 99 public void removeIncludedFeatures(IFeatureChild[] features) 100 throws CoreException; 101 102 109 public void addImports(IFeatureImport[] imports) throws CoreException; 110 115 public IFeaturePlugin[] getPlugins(); 116 121 public IFeatureData[] getData(); 122 123 128 public IFeatureImport[] getImports(); 129 130 135 public IFeatureChild[] getIncludedFeatures(); 136 137 142 public String getProviderName(); 143 148 public String getImageName(); 149 152 IPluginModelBase getReferencedModel(IFeaturePlugin reference); 153 158 public IFeatureURL getURL(); 159 160 public IFeatureInstallHandler getInstallHandler(); 161 public void setInstallHandler(IFeatureInstallHandler handler) 162 throws CoreException; 163 164 public IFeatureInfo getFeatureInfo(int index); 165 166 public void setFeatureInfo(IFeatureInfo info, int index) 167 throws CoreException; 168 169 176 public void removePlugins(IFeaturePlugin[] plugins) throws CoreException; 177 184 public void removeData(IFeatureData[] entries) throws CoreException; 185 192 public void removeImports(IFeatureImport[] imports) throws CoreException; 193 199 public void setProviderName(String providerName) throws CoreException; 200 206 public void setImageName(String imageName) throws CoreException; 207 213 public void setURL(IFeatureURL url) throws CoreException; 214 215 public void computeImports() throws CoreException; 216 217 boolean isPrimary(); 218 public void setPrimary(boolean value) throws CoreException; 219 220 boolean isExclusive(); 221 public void setExclusive(boolean value) throws CoreException; 222 223 String getPlugin(); 224 void setPlugin(String value) throws CoreException; 225 226 String getColocationAffinity(); 227 void setColocationAffinity(String value) throws CoreException; 228 String getApplication(); 229 void setApplication(String value) throws CoreException; 230 231 boolean isValid(); 232 } 233 | Popular Tags |