// Called when user Click Add-Ins Menu item from within EA. // Populates the Menu with our desired selections. public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName) { EA.Package aPackage = Repository.GetTreeSelectedPackage(); switch( MenuName ) { case "": return "-&Wind River"; case "-&Wind River": string[] ar = { "&Audio Configuration", "", "About..." }; return ar; } return ""; }
//Called when user Click Add-Ins Menu item from within EA. //Populates the Menu with our desired selections. public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName) { EA.Package aPackage = Repository.GetTreeSelectedPackage(); switch (MenuName) { case "": return "-&Test UC Model"; case "-&Test UC Model": string[] subMenus = { "Prepare UC Model", "Create new scenario", "Create new version element", "Create new term element", "Create new KPI element", "Create new custom information", "Create new information exchanged", "Create new reference" }; return subMenus; } return ""; }