@Override public void refresh() { initiatorText.removeFocusListener(listener); formKeyText.removeFocusListener(listener); PictogramElement pe = getSelectedPictogramElement(); if (pe != null) { Object bo = getBusinessObject(pe); // the filter assured, that it is a EClass if (bo == null) return; StartEvent startEvent = ((StartEvent) bo); if (startEvent.getInitiator() != null) { initiatorText.setText(startEvent.getInitiator()); } else { initiatorText.setText(""); } if (startEvent.getFormKey() != null) { String condition = startEvent.getFormKey(); formKeyText.setText(condition); } else { formKeyText.setText(""); } } initiatorText.addFocusListener(listener); formKeyText.addFocusListener(listener); }
@Override public void widgetDisposed(DisposeEvent e) { text.removeVerifyListener(verifyListener); text.removeFocusListener(focusListener); text.removeDisposeListener(disposeListener); }