save();
}
}
private void save() {
GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model, GuidedRuleEditorResources.CONSTANTS );
if ( validator.isValid() ) {
new SaveOperationService().save( path,
new CommandWithCommitMessage() {
@Override
public void execute( final String commitMessage ) {
view.showBusyIndicator( CommonConstants.INSTANCE.Saving() );
service.call( getSaveSuccessCallback(),
new HasBusyIndicatorDefaultErrorCallback( view ) ).save( path,
view.getContent(),
metadataWidget.getContent(),
commitMessage );
}
}
);
concurrentUpdateSessionInfo = null;
} else {
ErrorPopup.showMessage( validator.getErrors().get( 0 ) );
}
}