/** {@inheritDoc} */ @Override public void refresh() { nameWidget.removeModifyListener(nameListener); final PictogramElement pe = getSelectedPictogramElement(); if (pe != null) { final EObject bo = (EObject) Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(pe); // the filter assured, that it is a node if (bo == null) return; bc = (node) bo; String value = ""; value = bc.getName(); nameWidget.setText(value == null ? "" : value); nameWidget.addModifyListener(nameListener); } }
protected void changePropertyValue() { String newValue = nameWidget.getText(); if (!newValue.equals(bc.getName())) { bc.setName(newValue); } }