diff --git a/bundles/com.zeligsoft.domain.idl3plus.ui/src/com/zeligsoft/domain/idl3plus/ui/providers/IDL3PlusPropertyContentProvider.java b/bundles/com.zeligsoft.domain.idl3plus.ui/src/com/zeligsoft/domain/idl3plus/ui/providers/IDL3PlusPropertyContentProvider.java index d46692a8d..cfeaa0db5 100644 --- a/bundles/com.zeligsoft.domain.idl3plus.ui/src/com/zeligsoft/domain/idl3plus/ui/providers/IDL3PlusPropertyContentProvider.java +++ b/bundles/com.zeligsoft.domain.idl3plus.ui/src/com/zeligsoft/domain/idl3plus/ui/providers/IDL3PlusPropertyContentProvider.java @@ -97,16 +97,14 @@ public Object[] getChildren(Object parentElement) { .isZDLConcept(modelObject, IDL3PlusNames.CONNECTOR_DEF)) { // get properties of the component Component component = (Component) entry.getModelObject(); - IPropertyEntry grandParent = entry.getParent(); - EObject grandParentEObject = grandParent.getModelObject(); - Property grandParentProperty = null; - if (grandParentEObject instanceof Property) { - grandParentProperty = (Property) grandParentEObject; + IPropertyEntry entryParent = entry.getParent(); + EObject entryParentModelObject = entryParent != null ? entryParent.getModelObject() : null; + Property entryParentDeploymentProperty = null; + if (entryParentModelObject instanceof Property) { + entryParentDeploymentProperty = (Property) entryParentModelObject; } - Iterator itor = component.getAllAttributes().iterator(); - while (itor.hasNext()) { - Property property = itor.next(); - if (!IDL3PlusUtil.filter(grandParentProperty, property)) { + for (Property property: component.getAllAttributes()) { + if (entryParent == null || !IDL3PlusUtil.filter(entryParentDeploymentProperty, property)) { if (ZDLUtil.isZDLConcept(property, CXDomainNames.CXATTRIBUTE)) { children.add(entry.addChild(property)); diff --git a/bundles/com.zeligsoft.domain.idl3plus/src/com/zeligsoft/domain/idl3plus/utils/IDL3PlusUtil.java b/bundles/com.zeligsoft.domain.idl3plus/src/com/zeligsoft/domain/idl3plus/utils/IDL3PlusUtil.java index 609629d73..74192c62d 100644 --- a/bundles/com.zeligsoft.domain.idl3plus/src/com/zeligsoft/domain/idl3plus/utils/IDL3PlusUtil.java +++ b/bundles/com.zeligsoft.domain.idl3plus/src/com/zeligsoft/domain/idl3plus/utils/IDL3PlusUtil.java @@ -559,13 +559,13 @@ protected Map getTemplateParemeterBindings( * Determine whether the given attribute of the given port type matches the pattern specified for the * port type in the filteredProperties extension. * - * @param grandParent - A {@link Property}. + * @param deploymentProperty - A {@link Property} in the Deployment. * @param port - A {@link Port} {@link Property}. * @return A boolean. */ - public static boolean filter(Property grandParent, Property port) { - if (grandParent != null && port != null && ZDLUtil.isZDLConcept(port, ZMLMMNames.PORT)) { - Type portType = grandParent.getType(); + public static boolean filter(Property deploymentProperty, Property port) { + if (deploymentProperty != null && port != null && ZDLUtil.isZDLConcept(port, ZMLMMNames.PORT)) { + Type portType = deploymentProperty.getType(); if (portType != null && ZDLUtil.isZDLConcept(portType, ZMLMMNames.PORT_TYPE)) { String portTypeQualifiedName = getInstantiatedPortTypeQualifiedName(portType); FilteredPropertyConfiguration filteredPropertyConfiguration = ConnectorRegistry.getInstance()