Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] ListenerList vs ArrayList

We could also extend ListenerList to allow duplicates. There is already an enum Mode that could be
extended for that.
However, does it make sense for a listener to be notified multiple times for the same event?

Stefan

Volanakis, Elias wrote:
Just FYI, in the Tree/Table/List-Ridget I changed the container for the
double click listeners to ArrayList (recently changed to ListenerList).
The reason for using an ArrayList is that adding duplicate listeners is
explicitly permitted there.

This fixes the recent test failures in #testAddDoubleClickListener.
Feel free to discuss if you disagree. The alternative is to adjust the
tests / javadoc to disallow duplicate listeners.

Thanks,
Elias.

_______________________________________________
riena-dev mailing list
riena-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/riena-dev



Back to the top