}
private Widget valueEditor( final SingleFieldConstraint c ) {
//Create a new ConstraintValueEditor
ConstraintValueEditor constraintValueEditor = new ConstraintValueEditor( c,
pattern.getConstraintList(),
this.getModeller(),
this.getEventBus(),
this.readOnly );
//If any literal value changes set to dirty and refresh dependent enumerations
constraintValueEditor.setOnValueChangeCommand( new Command() {
public void execute() {
setModified( true );
refreshConstraintValueEditorsDropDownData( c );
}
} );
//If a Template Key value changes only set to dirty
constraintValueEditor.setOnTemplateValueChangeCommand( new Command() {
public void execute() {
setModified( true );
}
} );