jescot
30 Jun 2008, 1:49 AM
Hello,
I have an async tree with a context menu to add, edit and delete items. These actions calls a service and when they finish I want to refresh my tree.
My problem is that i'm not able to show my tree expandes as it was with the changes made.
I'm trying something like this:
private void refresh(TreeItem parent){
loader.loadChildren((StringModelData)parent.getData());
tree.expandPath(parent.getPath());
}
but it takes no effect.
Could someone help me? Thanks in advance.
Juan.
I have an async tree with a context menu to add, edit and delete items. These actions calls a service and when they finish I want to refresh my tree.
My problem is that i'm not able to show my tree expandes as it was with the changes made.
I'm trying something like this:
private void refresh(TreeItem parent){
loader.loadChildren((StringModelData)parent.getData());
tree.expandPath(parent.getPath());
}
but it takes no effect.
Could someone help me? Thanks in advance.
Juan.