1 19 20 package org.netbeans.modules.debugger.jpda; 21 22 import org.netbeans.api.debugger.DebuggerEngine; 23 import org.netbeans.api.debugger.Session; 24 import org.netbeans.api.debugger.jpda.JPDADebugger; 25 import org.netbeans.spi.debugger.DebuggerEngineProvider; 26 import org.netbeans.spi.debugger.ContextProvider; 27 28 29 36 public class JavaEngineProvider extends DebuggerEngineProvider { 37 38 private DebuggerEngine.Destructor desctuctor; 39 private Session session; 40 41 public JavaEngineProvider (ContextProvider contextProvider) { 42 session = (Session) contextProvider.lookupFirst (null, Session.class); 43 } 44 45 public String [] getLanguages () { 46 return new String [] {"Java"}; 47 } 48 49 public String getEngineTypeID () { 50 return JPDADebugger.ENGINE_ID; 51 } 52 53 public Object [] getServices () { 54 return new Object [0]; 55 } 56 57 public void setDestructor (DebuggerEngine.Destructor desctuctor) { 58 this.desctuctor = desctuctor; 59 } 60 61 public DebuggerEngine.Destructor getDestructor () { 62 return desctuctor; 63 } 64 65 public Session getSession () { 66 return session; 67 } 68 } 69 70 | Popular Tags |