Author: scabanovich
Date: 2010-10-28 07:28:02 -0400 (Thu, 28 Oct 2010)
New Revision: 26101
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java
Log:
JBIDE-7319
https://jira.jboss.org/browse/JBIDE-7319
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java 2010-10-28
03:47:33 UTC (rev 26100)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ext/AbstractClassPathMonitor.java 2010-10-28
11:28:02 UTC (rev 26101)
@@ -60,7 +60,7 @@
* Otherwise, updates inner model and disables class loader.
* @return
*/
- public boolean update() {
+ public synchronized boolean update() {
Libs libs = FileSystemsHelper.getLibs(model);
libs.update();
List<String> newPaths = libs.getPaths();
@@ -92,6 +92,9 @@
}
public void pathsChanged(List<String> paths) {
- libsModified = true;
+ synchronized (this) {
+ libsModified = true;
+ }
}
+
}