public override void EA_MenuClick(EA.Repository Repository, string Location, string MenuName, string ItemName) { switch (ItemName) { case NEWLINE_MENU_ITEM: NotesCleaner cleaner = new NotesCleaner(Repository); cleaner.CleanUpNotesAndSave(); break; case TRACE_MENU_ITEM: TraceabilityRunner runner = new TraceabilityRunner(Repository); runner.RunReportOnSelectedPBItem(); break; case MARKDOWN_EDITOR: mdownControl = (MarkdownNotesControl)Repository.AddTab("Markdown Editor", "EAPowerTools.MarkdownNotesControl"); mdownControl.LoadFromRepository(Repository); break; case MARKDOWN_DOCKED: mdownDocked = (MarkdownDockedViewer)Repository.AddWindow("Markdown Notes", "EAPowerTools.MarkdownDockedViewer"); mdownDocked.SetRepo(Repository); break; case POWER_EDITOR: control = (PowerEditorControl) Repository.AddTab("Power Editor", "EAPowerTools.PowerEditorControl"); control.LoadNotes(Repository); break; } }