From 76e53c034be6af83a246976158dc4c01551df5a3 Mon Sep 17 00:00:00 2001 From: shawn.f.cook Date: Thu, 27 Oct 2011 13:23:33 -0700 Subject: feature[ats_E6W8N]: Add synch for search results --- .../view/web/components/OseeSearchResultsListComponent.java | 8 ++++++-- 1 file 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 ca8074756f6..d0a9b0e775e 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"); } -- cgit v1.2.3