1 11 package org.eclipse.pde.internal.runtime.registry; 12 13 import org.eclipse.core.runtime.IConfigurationElement; 14 import org.eclipse.core.runtime.IExtension; 15 16 public class ExtensionAdapter extends ParentAdapter { 17 18 public ExtensionAdapter(Object object) { 19 super(object); 20 } 21 22 protected Object [] createChildren() { 23 IExtension extension = (IExtension) getObject(); 24 25 IConfigurationElement[] elements = extension.getConfigurationElements(); 26 Object [] result = new ConfigurationElementAdapter[elements.length]; 27 for (int i = 0; i < elements.length; i++) { 28 IConfigurationElement config = elements[i]; 29 result[i] = new ConfigurationElementAdapter(config); 30 } 31 return result; 32 } 33 } 34 | Popular Tags |