1 11 package org.eclipse.debug.internal.ui.actions.breakpointGroups; 12 13 import org.eclipse.debug.internal.ui.DebugUIPlugin; 14 import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointSetOrganizer; 15 import org.eclipse.jface.action.IAction; 16 import org.eclipse.jface.viewers.ISelection; 17 import org.eclipse.jface.window.Window; 18 import org.eclipse.ui.IWorkingSet; 19 20 23 public class SetDefaultBreakpointGroupAction extends AbstractBreakpointsViewAction { 24 25 28 public void run(IAction action) { 29 SelectBreakpointWorkingsetDialog sbwsd = new SelectBreakpointWorkingsetDialog(DebugUIPlugin.getShell(), BreakpointSetOrganizer.getDefaultWorkingSet()); 30 sbwsd.setTitle(BreakpointGroupMessages.SetDefaultBreakpointGroupAction_0); 31 if(sbwsd.open() == Window.OK) { 32 BreakpointSetOrganizer.setDefaultWorkingSet((IWorkingSet) sbwsd.getResult()[0]); 33 } 34 } 35 36 39 public void selectionChanged(IAction action, ISelection selection) {} 40 41 } 42 | Popular Tags |