1 19 20 package org.netbeans.modules.debugger.jpda.ui.breakpoints; 21 22 import org.netbeans.api.debugger.DebuggerManager; 23 import org.netbeans.api.debugger.LazyActionsManagerListener; 24 import org.netbeans.spi.debugger.ContextProvider; 25 import org.netbeans.api.debugger.jpda.JPDADebugger; 26 import org.netbeans.modules.debugger.jpda.ui.EditorContextBridge; 27 28 29 35 public class BreakpointsUpdater extends LazyActionsManagerListener { 36 37 private JPDADebugger debugger; 38 39 40 public BreakpointsUpdater (ContextProvider lookupProvider) { 41 JPDADebugger debugger = (JPDADebugger) lookupProvider.lookupFirst ( 42 null, JPDADebugger.class 43 ); 44 this.debugger = debugger; 45 EditorContextBridge.createTimeStamp (debugger); 46 BreakpointAnnotationListener bal = (BreakpointAnnotationListener) 47 DebuggerManager.getDebuggerManager ().lookupFirst 48 (null, BreakpointAnnotationListener.class); 49 bal.updateLineBreakpoints (); 50 } 51 52 protected void destroy () { 53 EditorContextBridge.disposeTimeStamp (debugger); 54 } 55 56 public String [] getProperties () { 57 return new String [0]; 58 } 59 } 60 | Popular Tags |