Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » No e.doit for SelectionChangedEvent?
icon5.gif  No e.doit for SelectionChangedEvent? [message #537424] Wed, 02 June 2010 12:21
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
I have a TreeViewer, and I want to stop the user from changing selection (e.g. because he has unsaved changes).

However, addSelectionListener is deprecated (why?) and addSelectionChangedListener won't help me because SelectionChangedEvent doesn't have a doit field. What is the correct thing to do here: use addSelectionListener despite deprecation? Or perhaps use addSelectionListener on the Tree instead of the TreeViewer?
Previous Topic:Getting TreeViewer object from a CTabItem
Next Topic:Why does TreeViewer fire SelectionChangedEvent when setSelection() is called?
Goto Forum:
  


Current Time: Fri Apr 19 13:24:35 GMT 2024

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

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

Back to the top