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; }
public RCommandFactory([Import(AllowDefault = true)] IObjectViewer objectViewer, [Import(AllowDefault = true)] IRInteractiveWorkflowProvider workflowProvider, ICoreShell shell) { _objectViewer = objectViewer; _workflowProvider = workflowProvider; _shell = shell; _services = shell.Services; }
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 { } } }
public static void Prepend(IObjectViewer viewer) { viewers.Add(viewer); }
public void Invoke(object[] obj, IObjectViewer viewer) { var card = ActionManager.FindAncestor<Ui.ICardManager>(viewer); card?.GetLastCard().AppendInput(Core.Evaluator.Inst.RefrenceObject(obj.First())); }
public RCommandFactory([Import(AllowDefault = true)] IObjectViewer objectViewer, [Import(AllowDefault = true)] IRInteractiveWorkflowProvider workflowProvider, IEditorShell editorShell) { _objectViewer = objectViewer; _workflowProvider = workflowProvider; _editorShell = editorShell; }
/// <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; }
/// <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; }
/// <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; }
public static string GetDescription(object obj) { IObjectViewer viewer = Choose(obj); return(viewer.GetHeader(obj).Description); }