public BandChooser(Window parent, String title, String helpID, boolean selectAtLeastOneBand, Band[] allBands, Band[] selectedBands, TiePointGrid[] allTiePointGrids, TiePointGrid[] selectedTiePointGrids, boolean addLoadSaveConfigurationButtons) { super(parent, title, ModalDialog.ID_OK_CANCEL, helpID); this.addLoadSaveConfigurationButtons = addLoadSaveConfigurationButtons; boolean multipleProducts = bandsAndGridsFromMoreThanOneProduct(allBands, allTiePointGrids); strategy = new DefaultBandChoosingStrategy(allBands, selectedBands, allTiePointGrids, selectedTiePointGrids, multipleProducts); this.selectAtLeastOneBand = selectAtLeastOneBand; initUI(); }