Skip to content

Commit

Permalink
JBIDE-19246 org.jboss.tools.jst.web.ui.test in error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykazakov committed Feb 12, 2015
1 parent 636caf5 commit cb14261
Showing 1 changed file with 13 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013 Red Hat, Inc.
* Copyright (c) 2013-2015 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
Expand Down Expand Up @@ -122,6 +122,17 @@ public void refresh() {
changed = true;
}
}
for (String c: categories) {
if(!setViewersByCategory.containsKey(c)) {
changed = true;
}
}
if(changed) {
for (IPropertySetViewer v: setViewersByCategory.values()) {
v.dispose();
}
setViewersByCategory.clear();
}
for (String c: categories) {
if(!setViewersByCategory.containsKey(c)) {
changed = true;
Expand Down Expand Up @@ -315,4 +326,4 @@ public List<String> getCategories() {
public IPropertySetViewer getViewer(String category) {
return setViewersByCategory.get(category);
}
}
}

0 comments on commit cb14261

Please sign in to comment.