/**
* Attaches editor behaviour to a toolbar, adding all the edit buttons.
*/
public static EditToolbar create(ParticipantId user, IdGenerator idGenerator, WaveId waveId) {
ToplevelToolbarWidget toolbarUi = new ToplevelToolbarWidget();
EditorToolbarResources.Css css = EditorToolbarResources.Loader.res.css();
return new EditToolbar(css, toolbarUi, user, idGenerator, waveId);
}