Commit cdd705fe authored by rbioteau's avatar rbioteau
Browse files

Revert "wait for repository initialization before starting engine"

This reverts commit c237245e.
parent 0fa6ae0f
......@@ -47,6 +47,7 @@ import org.bonitasoft.studio.common.repository.CommonRepositoryPlugin;
import org.bonitasoft.studio.common.repository.Repository;
import org.bonitasoft.studio.common.repository.RepositoryAccessor;
import org.bonitasoft.studio.common.repository.RepositoryManager;
import org.bonitasoft.studio.common.repository.core.job.WorkspaceInitializationJob;
import org.bonitasoft.studio.common.repository.extension.IPostInitRepositoryJobContribution;
import org.bonitasoft.studio.common.repository.model.IRepository;
import org.bonitasoft.studio.common.repository.preferences.RepositoryPreferenceConstant;
......@@ -411,9 +412,10 @@ public class BonitaStudioWorkbenchAdvisor extends WorkbenchAdvisor implements IS
}
protected void doInitWorkspace() {
new WorkspaceInitializationJob(repositoryAccessor).schedule();
try {
repositoryAccessor.start(monitor);
} catch (final CoreException e) {
Job.getJobManager().join(WorkspaceInitializationJob.WORKSPACE_INIT_FAMILY, monitor);
} catch (final InterruptedException 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