Community
Participate
Working Groups
On 1211 I was expecting my IEditorActionDelegate action (AddBreakpointAction) to have setActiveEditor called when the only active editor is closed (setting the active editor to null). This does not happen.
This is currently not part of the editor action delegate lifecycle. It is not appropriate to pass null through setActiveEditor now, because that would widen the interface. I suggest a new interface is added to clarify the desire to receive better notification.
I am confused...null is passed to this method all the time...when the delegate is initially created. If setActiveEditor can be called with null during the initDelegate part of the lifecycle why can it not be called when the only active editor is closed? Likely what is really missing is a defined set of lifecycle methods for IEditorActionDelegate (init, dispose) so that we would not have to rely on setActiveEditor to play so many roles?
In that case, it might be a worthwhile change. Will consider more ..
Added IActionDelegate2 which provides the lifecycle methods for action delegates. It also replaces IActionDelegateWithEvent interface which now is marked as deprecated. Will be in 20021203 integration build.
Forgot to mark it as FIXED.