コード例 #1
0
 public GoToDefinitionCommand(ITextView textView, ITextBuffer textBuffer, IObjectViewer objectViewer, IRSession session) :
    base(textView, new CommandId(typeof(VSConstants.VSStd97CmdID).GUID,
         (int)VSConstants.VSStd97CmdID.GotoDefn), needCheckout: false) {
     _textBuffer = textBuffer;
     _objectViewer = objectViewer;
     _session = session;
 }
コード例 #2
0
ファイル: RCommandFactory.cs プロジェクト: skrutsick/RTVS
 public RCommandFactory([Import(AllowDefault = true)] IObjectViewer objectViewer, [Import(AllowDefault = true)] IRInteractiveWorkflowProvider workflowProvider, ICoreShell shell)
 {
     _objectViewer     = objectViewer;
     _workflowProvider = workflowProvider;
     _shell            = shell;
     _services         = shell.Services;
 }
コード例 #3
0
ファイル: GoToDefinitionCommand.cs プロジェクト: mvacha/RTVS
 public GoToDefinitionCommand(ITextView textView, ITextBuffer textBuffer, IObjectViewer objectViewer, IRSession session) :
     base(textView, new CommandId(typeof(VSConstants.VSStd97CmdID).GUID,
                                  (int)VSConstants.VSStd97CmdID.GotoDefn), needCheckout: false)
 {
     _textBuffer   = textBuffer;
     _objectViewer = objectViewer;
     _session      = session;
 }
コード例 #4
0
ファイル: ParseAsImage.cs プロジェクト: AkshayVats/SuperShell
        public void Invoke(object[] obj, IObjectViewer viewer)
        {
            var manager = ActionManager.FindAncestor<Ui.ICardManager>(viewer);
            foreach (var path in obj.Cast<Uri>())
            {
                try
                {
                    manager.GetLastCard().AddOutputCard(new Image() { Source= Util.Shell.CreateBitmap(path) });
                }
                catch 
                {

                }
            }
        }
コード例 #5
0
 public static void Prepend(IObjectViewer viewer)
 {
     viewers.Add(viewer);
 }
コード例 #6
0
ファイル: GetInstance.cs プロジェクト: AkshayVats/SuperShell
 public void Invoke(object[] obj, IObjectViewer viewer)
 {
     var card = ActionManager.FindAncestor<Ui.ICardManager>(viewer);
     card?.GetLastCard().AppendInput(Core.Evaluator.Inst.RefrenceObject(obj.First()));
 }
コード例 #7
0
ファイル: RCommandFactory.cs プロジェクト: zachwieja/RTVS
 public RCommandFactory([Import(AllowDefault = true)] IObjectViewer objectViewer, [Import(AllowDefault = true)] IRInteractiveWorkflowProvider workflowProvider, IEditorShell editorShell)
 {
     _objectViewer     = objectViewer;
     _workflowProvider = workflowProvider;
     _editorShell      = editorShell;
 }
コード例 #8
0
ファイル: SearchTopUsersCommand.cs プロジェクト: minskowl/MY
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchGuildUsersCommand"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="viewer">The viewer.</param>
 public SearchTopUsersCommand(IControllerSource source, IObjectViewer viewer, Player player)
 {
     this.viewer = viewer;
     this.source = source;
     this.player = player;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchGuildUsersCommand"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="viewer">The viewer.</param>
 public SearchGuildUsersCommand(IControllerSource source, IObjectViewer viewer)
 {
     this.viewer = viewer;
     this.source = source;
 }
コード例 #10
0
ファイル: ClearStaffListCommand.cs プロジェクト: minskowl/MY
 /// <summary>
 /// Initializes a new instance of the <see cref="ClearStaffListCommand"/> class.
 /// </summary>
 /// <param name="controller">The controller.</param>
 public ClearStaffListCommand(IControllerSource controller, IObjectViewer view)
 {
     this._sourceController = controller;
     _view = view;
 }
コード例 #11
0
        public static string GetDescription(object obj)
        {
            IObjectViewer viewer = Choose(obj);

            return(viewer.GetHeader(obj).Description);
        }
コード例 #12
0
 public static void Prepend(IObjectViewer viewer)
 {
     viewers.Add(viewer);
 }