Adds the listener to the collection of listeners who will
be notified when a tab item is closed, minimized, maximized,
restored, or to show the list of items that are not
currently visible.
@param listener the listener which should be notified
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT - if the listener is null</li>
</ul>
@exception SWTException <ul>
<li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
<li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
</ul>
Adds the listener to the collection of listeners who will be notified when a tab item is closed, minimized, maximized, restored, or to show the list of items that are not currently visible.
@param listener the listener which should be notified
@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the listener is null</li> </ul>
@exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li> <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li> </ul>
@see CTabFolder2Listener @see #removeCTabFolder2Listener(CTabFolder2Listener)
@since 3.0