Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2021-05-27 11:39:34 +0000
committerSarika Sinha2021-06-07 20:16:25 +0000
commit4ffee3748e6d706c7fa9d68871bcc26bbf9db121 (patch)
treec5b66ad7f407c961298bc58c88f6af201f4f456d
parent0ec731a953f5dd77db68fa6689ddeae7ec514e6b (diff)
downloadeclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.tar.gz
eclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.tar.xz
eclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.zip
Change-Id: I54e6f419e7baa24622d8e8cca957b2ad4da62044 Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/181097 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java
index 4a4fdefd8..c767ac88b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java
@@ -1,5 +1,5 @@
/*****************************************************************
- * Copyright (c) 2009, 2018 Texas Instruments and others
+ * Copyright (c) 2009, 2021 Texas Instruments and others
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -196,8 +196,11 @@ public class BreakpointsView extends VariablesView implements IBreakpointManager
menu.add(getAction(ACTION_GOTO_MARKER));
menu.add(new Separator(IDebugUIConstants.EMPTY_BREAKPOINT_GROUP));
menu.add(new Separator(IDebugUIConstants.BREAKPOINT_GROUP));
- menu.add(getAction(PASTE_ACTION));
- IAction action = getAction(ACTION_REMOVE_FROM_GROUP);
+ IAction action = getAction(PASTE_ACTION);
+ if (action != null) {
+ menu.add(action);
+ }
+ action = getAction(ACTION_REMOVE_FROM_GROUP);
if (action != null && action.isEnabled()) {
menu.add(action);
}

Back to the top