public static IList <IntentionAction> ToHelpersContextActionIntentions([NotNull] this IBulbAction action, [CanBeNull] IAnchor customAnchor = null, [CanBeNull] IconId customIcon = null)
 {
     return(new[]
     {
         action.ToHelpersContextActionIntention(customAnchor, customIcon)
     });
 }
Exemplo n.º 2
0
 private BulbMenuItem CreateItem(IBulbAction bulbAction, ISolution solution, ITextControl textControl, IAnchor anchor)
 {
     return(new BulbMenuItem(new IntentionAction.MyExecutableProxi(bulbAction, solution, textControl),
                             bulbAction.Text,
                             LogoThemedIcons.NukeLogo.Id,
                             anchor));
 }
        public static BulbMenuItem BulbActionToMenuItem([NotNull] IBulbAction bulbAction,
                                                        [NotNull] ITextControl textControl,
                                                        [NotNull] ISolution solution,
                                                        [NotNull] IconId iconId)
        {
            var proxi        = new IntentionAction.MyExecutableProxi(bulbAction, solution, textControl);
            var menuText     = bulbAction.Text;
            var anchor       = BulbMenuAnchors.FirstClassContextItems;
            var bulbMenuItem = new BulbMenuItem(proxi, menuText, iconId, anchor);

            return(bulbMenuItem);
        }
 public static IntentionAction ToHelpersContextActionIntention([NotNull] this IBulbAction action, [CanBeNull] IAnchor customAnchor = null, [CanBeNull] IconId customIcon = null)
 {
     return(action.ToContextActionIntention(customAnchor ?? HelperActionsConstants.ContextActionsAnchor, customIcon ?? MyIcons.ContextActionIcon));
 }
Exemplo n.º 5
0
 public IEnumerable <IntentionAction> ToIntentionAction(IBulbAction bulbAction, IAnchor anchor)
 {
     return(bulbAction.ToQuickFixAction(anchor));
 }