1 11 package org.eclipse.update.internal.core; 12 import org.eclipse.update.core.model.*; 13 import org.eclipse.update.internal.model.*; 14 17 public class BaseSiteLocalFactory { 18 21 public InstallConfigurationModel createInstallConfigurationModel() { 22 return new InstallConfiguration(); 23 } 24 27 public ConfigurationActivityModel createConfigurationActivityModel() { 28 return new ConfigurationActivity(); 29 } 30 33 public ConfiguredSiteModel createConfigurationSiteModel() { 34 return new ConfiguredSite(); 35 } 36 39 public ConfigurationPolicyModel createConfigurationPolicyModel() { 40 return new ConfigurationPolicy(); 41 } 42 45 public ConfiguredSiteModel createConfigurationSiteModel(SiteModel site, int policy) { 46 ConfiguredSiteModel configSite = this.createConfigurationSiteModel(); 48 configSite.setSiteModel(site); 49 ConfigurationPolicyModel policyModel = this.createConfigurationPolicyModel(); 50 policyModel.setPolicy(policy); 51 configSite.setConfigurationPolicyModel(policyModel); 52 ((ConfigurationPolicy) policyModel).setConfiguredSiteModel(configSite); 53 return configSite; 54 } 55 } 56 | Popular Tags |