Beispiel #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));
        }
Beispiel #2
0
        protected override ContextMenuEntryContext CreateContext()
        {
            var treeView = MainWindow.Instance.treeView;

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

            if (textView != null && textView.IsKeyboardFocusWithin)
            {
                return(ContextMenuEntryContext.Create(MainWindow.Instance.ActiveTextView));
            }
            return(null);
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #6
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(LocalsControlCreator.LocalsControlInstance.treeView));
 }
Beispiel #7
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(ModulesControlCreator.ModulesControlInstance.listView));
 }
Beispiel #8
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(BreakpointsControlCreator.BreakpointsControlInstance.listView));
 }
Beispiel #9
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(ExceptionsControlCreator.ExceptionsControlInstance.listBox));
 }
Beispiel #10
0
 protected override ContextMenuEntryContext CreateContext()
 {
     return(ContextMenuEntryContext.Create(CallStackControlCreator.CallStackControlInstance.listView));
 }