Commit 60e27c7f authored by Bonita CI's avatar Bonita CI
Browse files

Merge branch 'CoreProduct' into 'feat_test_api'

parents 47341ccd a8d47eae
......@@ -101,8 +101,6 @@ public class Repository implements IRepository, IJavaContainer {
private static final String CLASS = "class";
private static final String BONITA_HOME_NAME = "bonita_home";
private final IProject project;
private SortedMap<Class<?>, IRepositoryStore<? extends IRepositoryFileStore>> stores;
......@@ -119,6 +117,8 @@ public class Repository implements IRepository, IJavaContainer {
private final ProjectClasspathFactory bonitaBPMProjectClasspath;
private boolean isLoaded = false;
public Repository(final IWorkspace workspace,
final IProject project,
final ExtensionContextInjectionFactory extensionContextInjectionFactory,
......@@ -286,9 +286,11 @@ public class Repository implements IRepository, IJavaContainer {
stores.clear();
stores = null;
}
isLoaded = false;
}
protected synchronized void initRepositoryStores(final IProgressMonitor monitor) {
isLoaded = false;
if (stores == null || stores.isEmpty()) {
disableBuild();
stores = new TreeMap<Class<?>, IRepositoryStore<? extends IRepositoryFileStore>>(new Comparator<Class<?>>() {
......@@ -317,6 +319,7 @@ public class Repository implements IRepository, IJavaContainer {
}
}
}
isLoaded = true;
}
private boolean migrationEnabled() {
......@@ -731,7 +734,7 @@ public class Repository implements IRepository, IJavaContainer {
@Override
public boolean isLoaded() {
return stores != null && !stores.isEmpty();
return isLoaded;
}
public IScopeContext getScopeContext() {
......
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