コード例 #1
0
 @Override
 public void disconnect(IDocument document) {
   if (document instanceof DisassemblyDocument) {
     final IBreakpointManager bpMgr = DebugPlugin.getDefault().getBreakpointManager();
     bpMgr.removeBreakpointListener(this);
     document.removeDocumentListener(this);
     fCatchup = null;
   }
   super.disconnect(document);
 }
コード例 #2
0
 @Override
 public void connect(IDocument document) {
   super.connect(document);
   if (document instanceof DisassemblyDocument) {
     final IBreakpointManager bpMgr = DebugPlugin.getDefault().getBreakpointManager();
     addBreakpoints(bpMgr.getBreakpoints());
     bpMgr.addBreakpointListener(this);
     document.addDocumentListener(this);
   }
 }