Пример #1
0
 /**
  * Return breakpoint status info for all active TCF debug sessions.
  *
  * @param breakpoint
  * @return breakpoint status as defined by TCF Breakpoints service.
  */
 Map<TCFLaunch, Map<String, Object>> getBreakpointStatus(IBreakpoint breakpoint) {
   assert Protocol.isDispatchThread();
   Map<TCFLaunch, Map<String, Object>> map = new HashMap<TCFLaunch, Map<String, Object>>();
   if (disposed) return null;
   ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches();
   for (ILaunch l : launches) {
     if (l instanceof TCFLaunch) {
       TCFLaunch launch = (TCFLaunch) l;
       TCFBreakpointsStatus bs = launch.getBreakpointsStatus();
       if (bs != null) map.put(launch, bs.getStatus(breakpoint));
     }
   }
   return map;
 }