All instances of widget should not necessarily be activated together
|2.0 - beta
In Fusion 2.0, we introduced a feature that visually activated all instances of the same widget so that when a toolbar widget was activated, the same type of widget on the context menu would be activated and vice-versa. This works well for simple widgets such as Pan but falls short if instances of the same widget have different behaviour based on their configuration. The most obvious example of this is the Zoom widget, which can be configured to zoom in or out.
The proposed fix is to add a new method to Widget.js called shouldActivateWith that takes a widget as an argument. The default behaviour will be to return true but specific widgets can overload this method and return false if the widget is not configured the same way.
This may apply to other widgets such as Select which can be configured to select on the active layer only or all layers. Two instances with different settings should not be activated together.