/** {@inheritDoc} */ @Override public void applicationUpdated( ApplicationDefinition application, CmrRepositoryDefinition repositoryDefinition) { ApplicationLeaf leaf = new ApplicationLeaf(application, getApplications(), repositoryDefinition); getApplications().set(leaf.getIndexInParentList(), leaf); performUpdate(false, null); }
/** {@inheritDoc} */ @Override public void applicationDeleted( ApplicationDefinition application, CmrRepositoryDefinition repositoryDefinition) { int index = 0; for (ApplicationLeaf appLeaf : getApplications()) { if (appLeaf.getApplication().getId() == application.getId()) { break; } index++; } if (index < getApplications().size()) { getApplications().remove(index); } performUpdate(false); }