1 11 package org.eclipse.debug.internal.ui.actions.breakpointGroups; 12 13 import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsView; 14 import org.eclipse.debug.internal.ui.views.breakpoints.IBreakpointOrganizer; 15 import org.eclipse.jface.action.Action; 16 import org.eclipse.jface.action.IAction; 17 18 23 public class GroupBreakpointsAction extends Action { 24 25 private IBreakpointOrganizer fOrganzier; 26 private BreakpointsView fView; 27 28 35 public GroupBreakpointsAction(IBreakpointOrganizer organizer, BreakpointsView view) { 36 super("", IAction.AS_RADIO_BUTTON); fOrganzier= organizer; 38 fView= view; 39 } 40 41 44 public void run() { 45 if (isChecked()) { 46 if (fOrganzier == null) { 47 fView.setBreakpointOrganizers(null); 48 } else { 49 fView.setBreakpointOrganizers(new IBreakpointOrganizer[]{fOrganzier}); 50 } 51 } 52 } 53 54 59 public IBreakpointOrganizer getOrganizer() { 60 return fOrganzier; 61 } 62 } 63 | Popular Tags |