HomePhabricator

Use ViewFactory for constructing statementlistviews in statementgroupview

Authored by adrianheine.

Description

Use ViewFactory for constructing statementlistviews in statementgroupview

This change introduces a ViewFactory method for creating statementlistview
widgets. This method is passed to the statementgroupview so that it can
create widgets without having to pass it all their dependencies.

It improves separation between the statementgroupview and statementlistview,
since the statementgroupview doesn't have to know how to construct a
statementlistview anymore. It also allows to inject a different
implementation, for example in tests.

This is a third step for T75380.

Bug: T75380
Change-Id: Ifeaa600d7746c0056668b754e4df67ca71cb9b2c

Details