private void createDescription() { FormToolkit toolkit = new FormToolkit(getDisplay()); setLayout(new GridLayout()); text = toolkit.createText(this, "", SWT.NONE); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); text.setText(description.getDisplay() != null ? description.getDisplay() : ""); text.addModifyListener(mListener); }
private void updateText() { text.removeModifyListener(mListener); text.setText(description.getDisplay() != null ? description.getDisplay() : ""); text.addModifyListener(mListener); }