1 11 package org.eclipse.core.internal.registry; 12 13 16 public class RegistryObjectFactory { 17 18 protected ExtensionRegistry registry; 20 21 public RegistryObjectFactory(ExtensionRegistry registry) { 22 this.registry = registry; 23 } 24 25 public Contribution createContribution(String contributorId, boolean persist) { 28 return new Contribution(contributorId, registry, persist); 29 } 30 31 public ExtensionPoint createExtensionPoint(boolean persist) { 34 return new ExtensionPoint(registry, persist); 35 } 36 37 public ExtensionPoint createExtensionPoint(int self, int[] children, int dataOffset, boolean persist) { 38 return new ExtensionPoint(self, children, dataOffset, registry, persist); 39 } 40 41 public Extension createExtension(boolean persist) { 44 return new Extension(registry, persist); 45 } 46 47 public Extension createExtension(int self, String simpleId, String namespace, int[] children, int extraData, boolean persist) { 48 return new Extension(self, simpleId, namespace, children, extraData, registry, persist); 49 } 50 51 public ConfigurationElement createConfigurationElement(boolean persist) { 54 return new ConfigurationElement(registry, persist); 55 } 56 57 public ConfigurationElement createConfigurationElement(int self, String contributorId, String name, String [] propertiesAndValue, int[] children, int extraDataOffset, int parent, byte parentType, boolean persist) { 58 return new ConfigurationElement(self, contributorId, name, propertiesAndValue, children, extraDataOffset, parent, parentType, registry, persist); 59 } 60 } 61 | Popular Tags |