Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [Resend]View: How to set the selection
[Resend]View: How to set the selection [message #97383] Tue, 22 July 2003 10:17 Go to next message
Eclipse UserFriend
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
Re: [Resend]View: How to set the selection [message #97398 is a reply to message #97383] Tue, 22 July 2003 10:34 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Use StructuredSelection from jface.

Rich
Previous Topic:About create comment in IDOMMember,!
Next Topic:How to get the resource
Goto Forum:
  


Current Time: Wed Apr 30 08:53:32 EDT 2025

Powered by FUDForum. Page generated in 0.03013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top