}
public void modifyText(ModifyEvent e) {
if( ! this.text.isDisposed() && ( this.text.getStyle() & SWT.READ_ONLY ) == 0 )
{
Element element = this.resource.getModelElement();
final String value = this.text.getText();
if (value.length() == 0 && e.getSource().equals(this.text) && element == null) {
// do nothing..
} else {
this.modifying = true;
boolean createNew = false;
if (element == null) {
// new element may not be the last one - insert empty strings
insertEmpty(this);
final Element newElement = list().insert();
setModelElement(newElement);
createNew = true;
}
this.resource.element().property( this.resource.getValueProperty() ).write( value, true );
if (createNew) {