I'm using a LassoComponent<> and LassoSource<> to select and deselect components in a visual editor. The SelectedItemSet<> I'm providing has the virtuals itemSelected() and itemDeselected() overridden, but neither of them is called when I add something to the lasso selection.
If I use a ChangeListener, a change is broadcasted (so I'm sure the selection actually takes place).
Am I doing something wrong? I'd say this could be considered buggy behaviour.
Looking at SelectedItemSet, it clearly does call those functions all over the place whenever anything changes. Maybe you've not overidden the method correctly or something else is wrong?
findLassoItemsInArea() is called (breakpoint), but then if I step further and get to the last line, it simply replaces the SelectedItemSet<> I provide using getLassoSelection() with a new one. Thát copy assignment operator doesn't call itemSelected() or itemDeselected(), but just the changebroadcaster callback.