Example #1
0
        public IEnumerable <IntentionAction> CreateBulbItems()
        {
            var node = myDataProvider.GetSelectedTreeNode <ITreeNode>();

            Assertion.Assert(node != null, "node != null");
            var classDeclaration = node.GetContainingNode <IClassLikeDeclaration>();

            var fix    = new GenerateUnityEventFunctionsFix(classDeclaration);
            var action = new IntentionAction(fix, PsiFeaturesUnsortedThemedIcons.FuncZoneGenerate.Id,
                                             BulbMenuAnchors.PermanentItem);

            return(new[] { action });
        }
        public IEnumerable <IntentionAction> CreateBulbItems()
        {
            var node = myDataProvider.GetSelectedTreeNode <ITreeNode>();

            Assertion.Assert(node != null, "node != null");
            var classDeclaration = node.GetContainingNode <IClassLikeDeclaration>();

            var fix = new GenerateUnityEventFunctionsFix(classDeclaration, node);

            //RIDER-30526
            var action = new IntentionAction(fix, PsiFeaturesUnsortedThemedIcons.FuncZoneGenerate.Id,
                                             new SubmenuAnchor(BulbMenuAnchors.PermanentBackgroundItems, SubmenuBehavior.Executable));

            return(new[] { action });
        }