* @param index
* The index of the factory to change
*/
public void changeQuantity(final int index)
{
final ChangeQuantityDialog dialog = ChangeQuantityDialog.getInstance();
dialog.setQuantity(this.complex.getQuantity(index));
if (dialog.open() == Result.OK)
{
this.complex.setQuantity(index, dialog.getQuantity());
doChange();
redraw();
}
}