ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: Renaming save method to the more correct "accept"

This commit is contained in:
Óscar González Fernández 2009-09-23 01:35:49 +02:00
parent 1810d92ae2
commit 491fc50940
4 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ public interface IResourceAllocationModel {
/**
* Save task
*/
void save();
void accept();
/**
* Starts the use case

View file

@ -272,8 +272,8 @@ public class ResourceAllocationController extends GenericForwardComposer {
resourcesList.getItems().clear();
}
public void save() {
resourceAllocationModel.save();
public void accept() {
resourceAllocationModel.accept();
close();
}

View file

@ -78,7 +78,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
@Override
@Transactional(readOnly = true)
public void save() {
public void accept() {
planningState.reassociateResourcesWithSession(resourceDAO);
removeDeletedAllocations();
doTheAllocation();

View file

@ -127,7 +127,7 @@
</listbox>
<hbox>
<button label="${i18n:_('Accept')}" onClick="allocationController.save()" />
<button label="${i18n:_('Accept')}" onClick="allocationController.accept()" />
<button label="${i18n:_('Apply')}" id="applyButton"/>
<button label="${i18n:_('Cancel')}" onClick="allocationController.cancel()" />
<button label="${i18n:_('Search resources...')}"