updating a viewer of a view from another view [message #467331] |
Thu, 03 May 2007 04:59  |
Eclipse User |
|
|
|
Hi to all,
I created a plugin with three views. Each of these views are connected to a level of a repository-tree. i.e.
1. ParentView: list everything on the repository tree.
2. ChildrenView: When I click on an item, I have all its children listed on the children view
3. GrandChildrenView: list the items from the children when clicked.
Now when I delete an item from each of these views, the corresponding view is refreshed, but when I delete an item from, let's say ParentView, neither the Children nor the GrandChildren-View is refreshed. All these items are listed in a tableViewer.
Thanks in advance.
Enrique
|
|
|
|
|
|
|
Re: updating a viewer of a view from another view [message #467470 is a reply to message #467445] |
Fri, 04 May 2007 07:07  |
Eclipse User |
|
|
|
Thank you very much for your help. I have solved the problem. It is not very professional, but it functions. Since the views number 2 and 3 only show children and grand children of the parent selected in view 1, I noticed that, when I select a parent and then delete, an ArrayOutOfBound Exception is thrown. I then catch this exception and exactly there, I set the Array of the viewer.setInput to 0. This solves the problem.
The solution is not very professional, but it might help anyone facing the same problems I have been facing.
Regards,
Enrique
|
|
|
Powered by
FUDForum. Page generated in 0.05851 seconds