Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with ColumnViewerEditorActivationListener in a TableViewer(beforeEditorActivated is never called)
Problem with ColumnViewerEditorActivationListener in a TableViewer [message #508568] Tue, 19 January 2010 13:11 Go to next message
Arne Jans is currently offline Arne JansFriend
Messages: 9
Registered: December 2009
Junior Member
Hello everybody,

I want to use a ColumnViewerEditorActivationListener to catch the event beforeEditorActivated for a TableViewer-Cell. This listener is connected to the ColumnViewerEditor in the constructor of my EditingSupport-class. But "beforeEditorActivated" is never called, because the ListenerList editorActivationListener in ColumnViewerEditor is null!

If I attach the ColumnViewerEditorActivationListener in my EditingSupport.initializeCellEditorValue-method, I can atleast catch the events afterEditorActivated and afterEditorDeactivated, but thats too late, I need to catch the event beforeEditorActivated too.

What could be the cause of it? Am I doing something wrong? Where is the right place to attach the ColumnViewerEditorActivationListener to the ColumnViewerEditor?


Regards,

Arne jans
Re: Problem with ColumnViewerEditorActivationListener in a TableViewer [message #508890 is a reply to message #508568] Wed, 20 January 2010 16:08 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
ColumnViewerEditor comes from jface, so I've copied the question to the
jface newsgroup.

"Arne Jans" <arne.jans@itscope.de> wrote in message
news:hj4b2a$sbv$1@build.eclipse.org...
> Hello everybody,
>
> I want to use a ColumnViewerEditorActivationListener to catch the event
beforeEditorActivated for a TableViewer-Cell. This listener is connected to
the ColumnViewerEditor in the constructor of my EditingSupport-class. But
"beforeEditorActivated" is never called, because the ListenerList
editorActivationListener in ColumnViewerEditor is null!
>
> If I attach the ColumnViewerEditorActivationListener in my
EditingSupport.initializeCellEditorValue-method, I can atleast catch the
events afterEditorActivated and afterEditorDeactivated, but thats too late,
I need to catch the event beforeEditorActivated too.
>
> What could be the cause of it? Am I doing something wrong? Where is the
right place to attach the ColumnViewerEditorActivationListener to the
ColumnViewerEditor?
>
>
> Regards,
>
> Arne jans
>
Previous Topic:scrolling an image in a canvas
Next Topic:What is the best way to report bugs?
Goto Forum:
  


Current Time: Fri Apr 19 04:51:42 GMT 2024

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

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

Back to the top