IDEMPIERE-2446:PopupMenu to move tree node disappear very fast

This commit is contained in:
hieplq 2015-02-05 13:38:47 +07:00
parent 19246fe68a
commit 45a716dd96
2 changed files with 5 additions and 5 deletions

View File

@ -866,7 +866,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
public void onCallback(Boolean result) { public void onCallback(Boolean result) {
if (result) { if (result) {
adTabbox.getSelectedGridTab().navigate(rowIndex); adTabbox.getSelectedGridTab().navigate(rowIndex);
focusToActivePanel(); //focusToActivePanel();
} }
} }
}; };

View File

@ -102,8 +102,8 @@ public class ADTreeOnDropListener implements EventListener<Event> {
int path[] = treeModel.getPath(toNode); int path[] = treeModel.getPath(toNode);
Treeitem toItem = tree.renderItemByPath(path); Treeitem toItem = tree.renderItemByPath(path);
tree.setSelectedItem(toItem); //tree.setSelectedItem(toItem);
Events.sendEvent(tree, new Event(Events.ON_SELECT, tree)); //Events.sendEvent(tree, new Event(Events.ON_SELECT, tree));
MenuListener listener = new MenuListener(movingNode, toNode); MenuListener listener = new MenuListener(movingNode, toNode);
@ -154,8 +154,8 @@ public class ADTreeOnDropListener implements EventListener<Event> {
tree.onInitRender(); tree.onInitRender();
} }
Treeitem movingItem = tree.renderItemByPath(path); Treeitem movingItem = tree.renderItemByPath(path);
tree.setSelectedItem(movingItem); //tree.setSelectedItem(movingItem);
Events.sendEvent(tree, new Event(Events.ON_SELECT, tree)); //Events.sendEvent(tree, new Event(Events.ON_SELECT, tree));
// *** Save changes to disk // *** Save changes to disk
Trx trx = Trx.get (Trx.createTrxName("ADTree"), true); Trx trx = Trx.get (Trx.createTrxName("ADTree"), true);