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.jface.action.Action; 15 import org.eclipse.jface.action.IAction; 16 import org.eclipse.jface.window.Window; 17 18 23 public class AdvancedGroupBreakpointsByAction extends Action { 24 25 private BreakpointsView fView; 26 27 public AdvancedGroupBreakpointsByAction(BreakpointsView view) { 28 super("", IAction.AS_RADIO_BUTTON); fView= view; 30 } 31 32 35 public void run() { 36 if (isChecked()) { 37 GroupBreakpointsByDialog dialog = new GroupBreakpointsByDialog(fView); 38 if (dialog.open() == Window.OK) { 39 fView.setBreakpointOrganizers(dialog.getOrganizers()); 40 } 41 } 42 } 43 44 } 45 | Popular Tags |