public boolean matches(IExtensionPoint target) { return id.equals(target.getNamespaceIdentifier()); } };
@Override public boolean matches(IExtensionPoint target) { return id.equals(target.getNamespaceIdentifier()); } };
public boolean matches(IExtensionPoint target) { return id.equals(target.getNamespaceIdentifier()); } };
public boolean matches(IExtensionPoint target) { return id.equals(target.getNamespaceIdentifier()); } };
private String getNamespaceIdentifier(Object object) { if (object instanceof IExtensionPoint) return ((IExtensionPoint)object).getNamespaceIdentifier(); if (object instanceof IExtension) return ((IExtension)object).getContributor().getName(); return null; }
private ExtensionPoint createExtensionPointAdapter(IExtensionPoint extensionPoint) { ExtensionPoint adapter = new ExtensionPoint(); adapter.setLabel(extensionPoint.getLabel()); adapter.setUniqueIdentifier(extensionPoint.getUniqueIdentifier()); adapter.setNamespaceIdentifier(extensionPoint.getNamespaceIdentifier()); adapter.setContributor(getBundleId(extensionPoint.getContributor().getName())); Extension[] extensions = createExtensionAdapters(extensionPoint.getExtensions()); adapter.getExtensions().addAll(Arrays.asList(extensions)); return adapter; }