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