Problem with ColumnViewerEditorActivationListener in a TableViewer [message #508568] |
Tue, 19 January 2010 08:11  |
Eclipse User |
|
|
|
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 11:08  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03834 seconds