Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2011-03-19 14:48:54 -0400
committerAlena Laskavaia2011-03-19 14:48:54 -0400
commit2122fc3c99930476196fdd6b96d4cc203e012a52 (patch)
tree87c53c66e4606826591d9124f4ce5d6c31cad2e2
parent9afbc979e69d3d9cbf508a46a2f602886c1916a3 (diff)
downloadorg.eclipse.cdt-2122fc3c99930476196fdd6b96d4cc203e012a52.tar.gz
org.eclipse.cdt-2122fc3c99930476196fdd6b96d4cc203e012a52.tar.xz
org.eclipse.cdt-2122fc3c99930476196fdd6b96d4cc203e012a52.zip
method should be syncronized
-rw-r--r--codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java2
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml1
2 files changed, 2 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java
index 1e6fb888ef..6bf238782e 100644
--- a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java
+++ b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java
@@ -82,7 +82,7 @@ public class CxxModelsCache {
}
- public ICodanCommentMap getCommentedNodeMap(IASTTranslationUnit ast) {
+ public synchronized ICodanCommentMap getCommentedNodeMap(IASTTranslationUnit ast) {
if (this.ast == ast) {
try {
index.acquireReadLock();
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml b/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
index 11bcb69075..995a5be27f 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/plugin.xml
@@ -14,6 +14,7 @@
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
commandId="org.eclipse.cdt.codan.commands.runCodanCommand"
+ icon="platform:/plugin/org.eclipse.cdt.codan.ui/icons/search_bug.gif"
id="org.eclipse.cdt.codan.ui.cxx.menus.runCodanCxxCommand"
label="%command.name"
mnemonic="%command.mnemonic">

Back to the top