1 11 package org.eclipse.debug.internal.ui.actions; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.core.model.IWatchpoint; 15 16 19 public class ModificationWatchpointToggleAction extends ModifyWatchpointAction { 20 21 24 protected boolean isEnabled(IWatchpoint watchpoint) { 25 return watchpoint.supportsModification(); 26 } 27 28 31 protected void toggleWatchpoint(IWatchpoint watchpoint, boolean b) throws CoreException { 32 watchpoint.setModification(b); 33 } 34 35 38 protected boolean isChecked(IWatchpoint watchpoint) { 39 try { 40 return watchpoint.isModification(); 41 } catch (CoreException e) { 42 } 43 return false; 44 } 45 46 } 47 | Popular Tags |