.openConfirm(
Display.getCurrent().getActiveShell(),
"Project should be configured to add OnPositive Profiler Support",
"Do you want to configure project to add OnPositive Profiler Support now?");
if (openConfirm) {
ConfigureTools configureTools = new ConfigureTools(
"Installing profiling", javaGaeProject, Activator
.getDefault().getBundle(),false);
PlatformUI.getWorkbench().getProgressService()
.showInDialog(
Display.getCurrent().getActiveShell(),
configureTools);
configureTools
.addJobChangeListener(new IJobChangeListener() {
public void sleeping(IJobChangeEvent event) {
}
public void scheduled(IJobChangeEvent event) {
}
public void running(IJobChangeEvent event) {
}
public void done(IJobChangeEvent event) {
enableBuilder(javaGaeProject, description);
}
public void awake(IJobChangeEvent event) {
}
public void aboutToRun(IJobChangeEvent event) {
}
});
configureTools.schedule();
}
} else {
enableBuilder(javaGaeProject, description);
}