1 11 12 package org.eclipse.debug.internal.ui.importexport.breakpoints; 13 14 import org.eclipse.debug.core.DebugException; 15 import org.eclipse.debug.internal.ui.DebugUIPlugin; 16 import org.eclipse.debug.internal.ui.actions.AbstractDebugActionDelegate; 17 import org.eclipse.jface.action.IAction; 18 import org.eclipse.jface.viewers.ISelection; 19 import org.eclipse.jface.wizard.WizardDialog; 20 21 33 public class ImportBreakpoints extends AbstractDebugActionDelegate { 34 35 40 public void run(IAction action) { 41 WizardImportBreakpoints wiz = new WizardImportBreakpoints(); 42 wiz.init(DebugUIPlugin.getDefault().getWorkbench(), null); 43 WizardDialog wizdialog = new WizardDialog(DebugUIPlugin.getShell(), wiz); 44 wizdialog.setBlockOnOpen(true); 45 wizdialog.open(); 46 } 48 51 protected void doAction(Object element) throws DebugException {} 52 53 56 protected void update(IAction action, ISelection s) { 57 getAction().setEnabled(true); 58 }} | Popular Tags |