diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java index 64b98f929..eaf4a3efc 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/AccessWatchpointToggleAction.java @@ -21,21 +21,24 @@ public class AccessWatchpointToggleAction extends ModifyWatchpointAction { /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.ModifyWatchpointAction#isEnabled(org.eclipse.debug.core.model.IWatchpoint) */ - protected boolean isEnabled(IWatchpoint watchpoint) { + @Override + protected boolean isEnabled(IWatchpoint watchpoint) { return watchpoint.supportsAccess(); } /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.ModifyWatchpointAction#toggleWatchpoint(org.eclipse.debug.core.model.IWatchpoint, boolean) */ - protected void toggleWatchpoint(IWatchpoint watchpoint, boolean b) throws CoreException { + @Override + protected void toggleWatchpoint(IWatchpoint watchpoint, boolean b) throws CoreException { watchpoint.setAccess(b); } /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.actions.ModifyWatchpointAction#isChecked(org.eclipse.debug.core.model.IWatchpoint) */ - protected boolean isChecked(IWatchpoint watchpoint) { + @Override + protected boolean isChecked(IWatchpoint watchpoint) { try { return watchpoint.isAccess(); } catch (CoreException e) { |