Return from edit company descriptor to edit command parser should be dotted
Replace
setCompany(Company target, Company editedCompany)
to
setCompany(target, c)
and
setCurrentViewedCompany(Company company)
to
setCurrentViewedCompany(c)
[This is simplistic from what actually happens, but I think its closer to the code representation].
target needs to be defined now. Either
Refactor the code to have a single getCompanyToEdit method that encapsulates the whole method call model.getFilteredCompanyList()..get(index.getZeroBased());. Because currently, the manipulation seems like a violation of
the abstraction. After that, you can use a single getCompanyToEdit from the ModelManager in the sequence diagram to show how the target company was obtained.
setCompany(Company target, Company editedCompany)
tosetCompany(target, c)
and
setCurrentViewedCompany(Company company)
tosetCurrentViewedCompany(c)
[This is simplistic from what actually happens, but I think its closer to the code representation].
target
needs to be defined now. EitherRefactor the code to have a single
getCompanyToEdit
method that encapsulates the whole method callmodel.getFilteredCompanyList()..get(index.getZeroBased());
. Because currently, the manipulation seems like a violation of the abstraction. After that, you can use a singlegetCompanyToEdit
from theModelManager
in the sequence diagram to show how thetarget
company was obtained.Use a seperate lifeline. (see https://github.com/nus-cs2103-AY2324S1/forum/issues/455)