コード例 #1
0
        public static IEnumerable <ShowBurstCallsBulbAction> GetBurstCallsActions(IMethodDeclaration methodDeclaration)
        {
            var incoming = new ShowBurstCallsBulbAction(methodDeclaration, ShowCallsType.INCOMING);

            // var outgoing = new ShowBurstCallsBulbAction(methodDeclaration, ShowCallsType.OUTGOING);

            return(new[]
            {
                incoming
                // , outgoing
            });
        }
コード例 #2
0
        protected override IEnumerable <BulbMenuItem> GetActions(IMethodDeclaration methodDeclaration, ITextControl textControl)
        {
            var actions = ShowBurstCallsBulbAction.GetBurstCallsActions(methodDeclaration);

            return(actions.ToMenuItems(textControl, Solution));
        }