{
final Factory mineType = this.complex.getFactory(index);
final SetYieldsDialog dialog = new SetYieldsDialog(mineType);
dialog.setYields(this.complex.getYields(index));
dialog.setSector(this.complex.getSector());
if (dialog.open() == Result.OK)
{
this.complex.setYields(index, dialog.getYields());
this.complex.setSector(dialog.getSector());
doChange();
redraw();