IDEMPIERE-935 ZK: Memory leak for menu search panel.

This commit is contained in:
Heng Sin Low 2013-05-17 16:21:13 +08:00
parent 72abf35700
commit 747470b2f1
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class MenuSearchPanel extends AbstractMenuPanel
super.init();
pnlSearch.initialise();
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).subscribe(new EventListener<Event>() {
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener<Event>() {
public void onEvent(Event event) throws Exception {
if (event.getName() == Events.ON_CHECK)
{

View File

@ -82,7 +82,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
searchPanel.refreshSearchList();
tree.invalidate();
*/
EventQueues.lookup(MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).publish(new Event(Events.ON_CHECK, null, chk));
EventQueues.lookup(MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).publish(new Event(Events.ON_CHECK, null, chk));
}
public static void toggleFlatView(Tree tree, final Checkbox chk) {

View File

@ -63,7 +63,7 @@ public class MenuTreePanel extends AbstractMenuPanel
expandAll();
// Auto Expand Tree - nmicoud IDEMPIERE 195
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).subscribe(new EventListener<Event>() {
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener<Event>() {
public void onEvent(Event event) throws Exception {
if (event.getName() == Events.ON_CHECK)
{