if ( !this.readOnly ) {
btn = GuidedRuleEditorImages508.INSTANCE.Edit();
btn.addClickHandler( new ClickHandler() {
public void onClick( ClickEvent event ) {
final FreeFormLinePopup popup = new FreeFormLinePopup( GuidedRuleEditorResources.CONSTANTS.FreeFormDrl(),
action.getText() );
popup.addOKClickHandler( new ClickHandler() {
public void onClick( ClickEvent event ) {
action.setText( popup.getText() );
textArea.setText( action.getText() );
setModified( true );
popup.hide();
}
} );
popup.show();
}
} );
} else {
btn = new Image( GuidedRuleEditorResources.INSTANCE.images().editDisabled() );