Plugins (1077)


Training and Consulting (43)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 539
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
summer
12 Post subject: highlight the node in a treeviewer  PostPosted: Jul 21, 2005 - 05:39 PM
Guest





Hi everyone,

Here is an interesting problem.
I have a treeviewer, and when I double click or left click the node in the tree, the node can be highlighted. But when I right click the node, it pop up a menu, and the node can't be highlighted after I choose one of the menuitems.
I try to use the code below:
ISelection selection = viewer.getSelection();
Object obj = ((IStructuredSelection) selection) .getFirstElement();

to check when the node is still be selected. It's true!!! But how can I still keep the node highlighted?

Thx for any help in advance! Smile
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits