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 08:11 Go to next message
Arne Jans is currently offline Arne Jans
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 11:08 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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: Wed Jul 30 03:08:16 EDT 2014

Powered by FUDForum. Page generated in 0.03596 seconds