private void AddPlugin(ContentItem start, ContentItem root, ToolbarPluginAttribute plugin, Control command) { plugin.AddTo(command, new PluginContext(Page.GetSelection(), start, root, ControlPanelState.Visible, Engine, new HttpContextWrapper(Context))); }
private void AddPlugin(ContentItem start, ContentItem root, ToolbarPluginAttribute plugin, Control command) { plugin.AddTo(command, new PluginContext(Selection.SelectedItem, null, start, root, ControlPanelState.Visible, Engine.ManagementPaths)); }