configurationChanged = true;
ILazyApplicationInfo[] applicationInfos = null;
boolean configurationCompleted = false;
try {
ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(shell);
FindApplicationInfosOperation findApplicationInfosOperation = new FindApplicationInfosOperation();
progressMonitorDialog.run(true, true, findApplicationInfosOperation);
applicationInfos = findApplicationInfosOperation.getApplicationsInfos();
if (applicationInfos.length == 1) {
if (applicationInfos[0].getMajorVersion() == 2 || (applicationInfos[0].getMajorVersion() == 1 && applicationInfos[0].getMinorVersion() == 9)) {
configuration.put(IOfficeApplication.APPLICATION_HOME_KEY,
applicationInfos[0].getHome());
configurationCompleted = true;