summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn.f.cook2011-10-27 16:23:33 (EDT)
committerRoberto E. Escobar2011-10-27 16:23:33 (EDT)
commit76e53c034be6af83a246976158dc4c01551df5a3 (patch)
tree78c481abad03c9df7081c37c8bcf4efa236e12b5
parent1802810341c6bedd300458bb05553878cc2d4770 (diff)
downloadorg.eclipse.osee-76e53c034be6af83a246976158dc4c01551df5a3.zip
org.eclipse.osee-76e53c034be6af83a246976158dc4c01551df5a3.tar.gz
org.eclipse.osee-76e53c034be6af83a246976158dc4c01551df5a3.tar.bz2
feature[ats_E6W8N]: Add synch for search results
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
index ca80747..d0a9b0e 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeSearchResultsListComponent.java
@@ -163,14 +163,18 @@ public class OseeSearchResultsListComponent extends VerticalLayout implements Se
//Second, remove the search result components
for (Component component : removeTheseComponents) {
- mainLayout.removeComponent(component);
+ synchronized (getApplication()) {
+ mainLayout.removeComponent(component);
+ }
}
//Next, add the result components to the layout that are on the current 'page'
for (Integer i : resultListIndices) {
try {
OseeSearchResultComponent searchResultComp = resultList.get(i);
- mainLayout.addComponent(searchResultComp, 0);
+ synchronized (getApplication()) {
+ mainLayout.addComponent(searchResultComp, 0);
+ }
} catch (IndexOutOfBoundsException e) {
System.out.println("OseeSearchResultsListComponent.updateSearchResultsLayout - CRITICAL ERROR: IndexOutOfBoundsException e");
}