diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java index 38466f41b..49fdb0a81 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetWatchpointAction.java @@ -26,18 +26,21 @@ public class RetargetWatchpointAction extends RetargetBreakpointAction { /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.RetargetBreakpointAction#performAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart) */ + @Override protected void performAction(Object target, ISelection selection, IWorkbenchPart part) throws CoreException { ((IToggleBreakpointsTarget)target).toggleWatchpoints(part, selection); } /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.RetargetBreakpointAction#canPerformAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart) */ + @Override protected boolean canPerformAction(Object target, ISelection selection, IWorkbenchPart part) { return ((IToggleBreakpointsTarget)target).canToggleWatchpoints(part, selection); } /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.RetargetAction#getOperationUnavailableMessage() */ + @Override protected String getOperationUnavailableMessage() { return Messages.RetargetWatchpointAction_0; } |