Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
a8d47eae
Commit
a8d47eae
authored
Dec 01, 2015
by
Aurelien Pupier
Browse files
try to fix potential deadlock with sp_bar_builder
parent
ead4e8d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/Repository.java
View file @
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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment