class AddImportPopup extends BaseModal {

    public void setContent(final Command callbackCommand,
                           final List<Import> allAvailableImportTypes) {
        this.callbackCommand = callbackCommand;
        this.importTypeListBox.clear();

        if (allAvailableImportTypes.size() > 0) {
            allAvailableImportTypes.sort(Sorters.sortByFQCN());
            importTypeListBox.addItem(ImportConstants.INSTANCE.ChooseAFactType());
            for (Import importType : allAvailableImportTypes) {
                importTypeListBox.addItem(importType.getType());
            }
            importTypeListBox.setEnabled(true);
        } else {
            importTypeListBox.addItem(ImportConstants.INSTANCE.noTypesAvailable());
            importTypeListBox.setEnabled(false);
        }

        footer.enableOkButton(false);
        importTypeListBox.setSelectedIndex(0);
    }

    public  AddImportPopup();

}