Exemplo n.º 1
0
        public void Execute(TextViewContext context)
        {
            var @ref = OpenReferenceContextMenuEntry.GetReference(context);

            if (@ref != null)
            {
                MainWindow.Instance.OpenNewEmptyTab();
                var textView = MainWindow.Instance.SafeActiveTextView;
                MainWindow.Instance.JumpToReference(textView, @ref);
                MainWindow.Instance.SetTextEditorFocus(textView);
            }
        }
Exemplo n.º 2
0
 public void Execute(ContextMenuEntryContext context)
 {
     OpenReferenceContextMenuEntry.Execute(context, true);
 }
Exemplo n.º 3
0
 public bool IsVisible(ContextMenuEntryContext context)
 {
     return(OpenReferenceContextMenuEntry.GetReference(context) != null);
 }