Commit 24165b1b authored by Romain Bioteau's avatar Romain Bioteau
Browse files

wait for repository initialization before starting engine

parent c237245e
......@@ -62,6 +62,7 @@ import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceDescription;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ProjectScope;
import org.eclipse.core.resources.ResourcesPlugin;
......@@ -226,11 +227,17 @@ public class Repository implements IRepository, IJavaContainer {
BonitaStudioLog.error(e);
}
try {
projectManifestFactory.createProjectManifest(project, monitor);
initBonitaHome(monitor);
initRepositoryStores(monitor);
enableBuild();
bonitaBPMProjectClasspath.create(this, monitor);
workspace.run(new IWorkspaceRunnable() {
@Override
public void run(IProgressMonitor monitor) throws CoreException {
projectManifestFactory.createProjectManifest(project, monitor);
initBonitaHome(monitor);
initRepositoryStores(monitor);
enableBuild();
bonitaBPMProjectClasspath.create(Repository.this, monitor);
}
}, monitor);
} catch (final CoreException e) {
BonitaStudioLog.error(e);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment