public class OfficeModule extends ModuleInstall {
private static final long serialVersionUID = -8499324854301243852L;
public void installed () {
WizardDescriptor wiz = new InstallationPathDescriptor();
TopManager.getDefault().createDialog(wiz).show();
if(wiz.getValue() == NotifyDescriptor.OK_OPTION) {
OfficeInstallation oi = (OfficeInstallation)
wiz.getProperty(InstallationPathDescriptor.PROP_INSTALLPATH);
OfficeSettings settings = OfficeSettings.getDefault();
settings.setOfficeDirectory(oi);
}
FrameworkJarChecker.mountDependencies();