Remove methods taking `&mut Workspace` from `Pane` (#2540)

This pull request simplifies the `Pane` struct by replacing methods like
`Pane::add_item` that would previously take a `&mut Workspace` with
methods that take a `&mut self`. When access to the workspace is needed,
we now either emit an event from the `Pane` or directly move the method
to the `Workspace` struct.
1fc9103b61Antonio Scandurra committed on 5/30/2023, 1:01:35 PM· committed by GitHubparents8a851adbd49403
12 files changedLine totals unavailable