public void openWizardForFileImport(Shell shell, IFolder targetFolder, String file) {
internalOpenWizard(shell, targetFolder, file, false, false);
}
private void internalOpenWizard(Shell shell, IFolder targetFolder, final String fileOrWebsite, boolean isKeywordSearch, final boolean isWebsiteSearch) {
final ImportWizard importWizard = new ImportWizard(targetFolder, fileOrWebsite, isKeywordSearch);
CustomWizardDialog dialog = new CustomWizardDialog(shell, importWizard) {
@Override
protected boolean isResizable() {
return true;
}
@Override
public int open() {
if (StringUtils.isSet(fileOrWebsite) && isWebsiteSearch)
importWizard.getContainer().showPage(importWizard.getNextPage(getCurrentPage()));
return super.open();
}
@Override