1 19 20 package org.netbeans.modules.debugger.importd2; 21 22 import org.openide.TopManager; 23 import org.openide.execution.ExecInfo; 24 import org.openide.debugger.DebuggerType; 25 import org.openide.debugger.DebuggerException; 26 import org.openide.util.HelpCtx; 27 import org.openide.loaders.DataObject; 28 import org.openide.text.Line; 29 30 import org.netbeans.modules.debugger.AbstractDebuggerType; 31 32 33 36 public class ImportDebuggerType extends AbstractDebuggerType { 37 38 static final long serialVersionUID = 5234304898551299437L; 39 40 41 public String displayName () { 42 return ImportDebugger.getLocString ("CTL_Import_Debugger_Type"); 43 } 44 45 public HelpCtx getHelpCtx () { 46 return new HelpCtx (ImportDebuggerType.class); 47 } 48 49 50 public void startDebugger (ExecInfo info, boolean stopOnMain) 51 throws DebuggerException { 52 TopManager.getDefault ().getDebugger ().startDebugger ( 53 new ImportDebuggerInfo ( 54 info.getClassName (), 55 info.getArguments (), 56 stopOnMain ? info.getClassName () : null 57 ) 58 ); 59 return; 60 } 61 62 70 public boolean supportsDebuggingOf (DataObject obj) { 71 return obj.getPrimaryFile ().getMIMEType ().equals ("text/x-java"); 72 } 73 74 84 public void startDebugger (DataObject obj, Line stopOnline) throws DebuggerException { 85 startDebugger (obj, false); 86 } 87 88 } 89 | Popular Tags |