Esempio n. 1
0
        protected static ContextMenuEntryContext CreateContext()
        {
            var textView = MainWindow.Instance.ActiveTextView;

            if (textView != null && textView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(textView));
            }

            if (MainWindow.Instance.treeView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(MainWindow.Instance.treeView));
            }

            if (MainWindow.Instance.treeView.SelectedItems.Count != 0)
            {
                bool teFocus = textView != null && textView.TextEditor.TextArea.IsFocused;
                if (teFocus)
                {
                    return(ContextMenuEntryContext.Create(textView));
                }
                if (UIUtils.HasSelectedChildrenFocus(MainWindow.Instance.treeView))
                {
                    return(ContextMenuEntryContext.Create(MainWindow.Instance.treeView));
                }
            }

            return(ContextMenuEntryContext.Create(null));
        }
Esempio n. 2
0
        protected override ContextMenuEntryContext CreateContext()
        {
            var treeView = MainWindow.Instance.treeView;

            if (treeView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(treeView, true));
            }
            return(null);
        }
Esempio n. 3
0
        protected override ContextMenuEntryContext CreateContext()
        {
            var textView = MainWindow.Instance.ActiveTextView;

            if (textView != null && textView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(MainWindow.Instance.ActiveTextView));
            }
            return(null);
        }
Esempio n. 4
0
        static ContextMenuEntryContext CreateContext()
        {
            var textView = MainWindow.Instance.ActiveTextView;

            if (textView != null && textView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(textView, true));
            }

            return(ContextMenuEntryContext.Create(null, true));
        }
Esempio n. 5
0
        static ContextMenuEntryContext CreateContextMenuEntryContext()
        {
            var tabState = MainWindow.Instance.GetActiveDecompileTabState();

            if (tabState != null)
            {
                var listView = FindListView(tabState);
                if (listView != null && UIUtils.HasSelectedChildrenFocus(listView))
                {
                    return(ContextMenuEntryContext.Create(listView, true));
                }
            }

            return(ContextMenuEntryContext.Create(null, true));
        }
Esempio n. 6
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(LocalsControlCreator.LocalsControlInstance.treeView));
 }
Esempio n. 7
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(ModulesControlCreator.ModulesControlInstance.listView));
 }
Esempio n. 8
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(BreakpointsControlCreator.BreakpointsControlInstance.listView));
 }
Esempio n. 9
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(ExceptionsControlCreator.ExceptionsControlInstance.listBox));
 }
Esempio n. 10
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(CallStackControlCreator.CallStackControlInstance.listView));
 }