try {
license = ir.getLicense(new NullProgressMonitor());
} catch (CoreException ex) {
Activator.getLogger().error(ex);
}
TaskModel taskModel = new TaskModel();
taskModel.putObject(LicenseWizardFragment.LICENSE, license);
TaskWizard wizard2 = new TaskWizard(
Messages.AbstractKarafRuntimeComposite_jboss_fuse_rt_label,
new WizardFragment() {
protected void createChildFragments(
List<WizardFragment> list) {
list.add(new LicenseWizardFragment());
list.add(new RTITargetFolderWizardFragment());
}
}, taskModel);
WizardDialog dialog2 = new WizardDialog(getShell(), wizard2);
if (dialog2.open() == Window.CANCEL)
return;
final String selectedDirectory = (String) taskModel
.getObject(RTITargetFolderWizardFragment.FUSE_RT_LOC);
if (selectedDirectory != null) {
// ir.install(new Path(selectedDirectory));
final IPath installPath = new Path(selectedDirectory);