1 11 package org.eclipse.update.core; 12 13 import java.net.URL ; 14 15 import org.eclipse.core.runtime.CoreException; 16 import org.eclipse.core.runtime.IProgressMonitor; 17 import org.eclipse.update.core.model.FeatureModel; 18 import org.eclipse.update.core.model.FeatureModelFactory; 19 import org.eclipse.update.core.model.ImportModel; 20 import org.eclipse.update.core.model.IncludedFeatureReferenceModel; 21 import org.eclipse.update.core.model.InstallHandlerEntryModel; 22 import org.eclipse.update.core.model.NonPluginEntryModel; 23 import org.eclipse.update.core.model.PluginEntryModel; 24 import org.eclipse.update.core.model.URLEntryModel; 25 26 46 public abstract class BaseFeatureFactory extends FeatureModelFactory implements IFeatureFactory { 47 48 54 public IFeature createFeature(URL url, ISite site) throws CoreException { 55 return createFeature(url, site, null); 56 } 57 58 65 public abstract IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException; 66 67 74 public FeatureModel createFeatureModel() { 75 return new Feature(); 76 } 77 78 85 public IncludedFeatureReferenceModel createIncludedFeatureReferenceModel() { 86 return new IncludedFeatureReference(); 87 } 88 89 96 public InstallHandlerEntryModel createInstallHandlerEntryModel() { 97 return new InstallHandlerEntry(); 98 } 99 100 107 public ImportModel createImportModel() { 108 return new Import(); 109 } 110 111 118 public PluginEntryModel createPluginEntryModel() { 119 return new PluginEntry(); 120 } 121 122 129 public NonPluginEntryModel createNonPluginEntryModel() { 130 return new NonPluginEntry(); 131 } 132 133 140 public URLEntryModel createURLEntryModel() { 141 return new URLEntry(); 142 } 143 } 144 | Popular Tags |