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) {
if (result) {
adTabbox.getSelectedGridTab().navigate(rowIndex);
focusToActivePanel();
//focusToActivePanel();
}
}
};

View File

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