[Resend]View: How to set the selection [message #97383] |
Tue, 22 July 2003 10:17  |
Eclipse User |
|
|
|
Hi,
sorry for posting twice.
For some reason this message was only visible in the web interface at
eclipse.org but not in this newsgroup :-(
TIA + regards,
Frank
############################################################ #######
Hi,
I have built a plugin based on the view template.
Now I'm wondering of to set the selection for a (parent)tree node.
Background: I have added some functionality for deleting nodes.
However, after deleting a node, the current selection is lost.
How can I make sure that another tree node will get the focus after
deleting the current one?
As far as I can see this can be done by using the
TreeViewer.setSelection(ISelection arg0) method.
Unfortunately I dont know how to create the ISelection object (required
as parameter).
Every hint is welcome.
TIA + Best regards,
Frank
|
|
|
|
Powered by
FUDForum. Page generated in 0.03013 seconds