private TableItem bindPublishEventAttribute(PublishEventMediatorAttribute attribute) { TableItem item = new TableItem(publishEventAttributeTable, SWT.NONE); if (attribute .getAttributeValueType() .getLiteral() .equals(AttributeValueType.STRING.getLiteral())) { item.setText( new String[] { attribute.getAttributeName(), attribute.getAttributeValue(), attribute.getAttributeValueType().getLiteral() }); } if (attribute .getAttributeValueType() .getLiteral() .equals(AttributeValueType.EXPRESSION.getLiteral())) { item.setText( new String[] { attribute.getAttributeName(), attribute.getAttributeExpression().getPropertyValue(), attribute.getAttributeValueType().getLiteral() }); item.setData( EXPRESSION_DATA, EsbFactory.eINSTANCE.copyNamespacedProperty(attribute.getAttributeExpression())); } item.setData(attribute); return item; }