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 Romanov
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:CheckboxTreeViewer with custom input
Next Topic:Why does TreeViewer fire SelectionChangedEvent when setSelection() is called?
Goto Forum:
  


Current Time: Wed Oct 22 15:38:53 GMT 2014

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

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