1 11 package org.eclipse.debug.internal.ui.actions; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.ui.actions.*; 15 import org.eclipse.jface.viewers.ISelection; 16 import org.eclipse.ui.IWorkbenchPart; 17 18 19 24 public class RetargetMethodBreakpointAction extends RetargetBreakpointAction { 25 26 29 protected void performAction(Object target, ISelection selection, IWorkbenchPart part) throws CoreException { 30 ((IToggleBreakpointsTarget)target).toggleMethodBreakpoints(part, selection); 31 } 32 35 protected boolean canPerformAction(Object target, ISelection selection, IWorkbenchPart part) { 36 return ((IToggleBreakpointsTarget)target).canToggleMethodBreakpoints(part, selection); 37 } 38 } 39 | Popular Tags |