LocationCollection enableBreak(SourceFile f,int line,int isolateId) throws NotConnectedException {
  LocationCollection col=new LocationCollection();
  boolean singleSwfBreakpoint=m_fileInfo.isSwfFilterOn();
  SwfInfo swf=m_fileInfo.getSwfFilter();
  if (singleSwfBreakpoint) {
    Location l=null;
    try {
      l=findAndEnableBreak(swf,f,line);
    }
 catch (    InProgressException e) {
      if (Trace.error)       Trace.trace(((swf == null) ? "SWF " : swf.getUrl()) + " still loading, breakpoint at " + f.getName()+ ":"+ line+ " not set");
    }
    col.add(l);
  }
 else {
    SwfInfo[] swfs=m_fileInfo.getSwfs(isolateId);
    for (    SwfInfo swf1 : swfs) {
      swf=swf1;
      if (swf != null) {
        Location l=null;
        try {
          l=findAndEnableBreak(swf,f,line);
        }
 catch (        InProgressException e) {
          if (Trace.error)           Trace.trace((swf.getUrl()) + " still loading, breakpoint at " + f.getName()+ ":"+ line+ " not set");
        }
        if (l != null)         col.add(l);
      }
    }
  }
  return col;
}

LocationCollection enableBreak ( SourceFile f , int line , int isolateId ) throws NotConnectedException { LocationCollection col = new LocationCollection ( ) ; boolean singleSwfBreakpoint = m_fileInfo . isSwfFilterOn ( ) ; SwfInfo swf = m_fileInfo . getSwfFilter ( ) ; if ( singleSwfBreakpoint ) { Location l = null ; try { l = findAndEnableBreak ( swf , f , line ) ; } catch ( InProgressException e ) { if ( Trace . error ) Trace . trace ( ( ( swf == null ) ? "SWF " : swf . getUrl ( ) ) + " still loading, breakpoint at " + f . getName ( ) + ":" + line + " not set" ) ; } col . add ( l ) ; } else { SwfInfo [ ] swfs = m_fileInfo . getSwfs ( isolateId ) ; for ( SwfInfo swf1 : swfs ) { swf = swf1 ; if ( swf != null ) { Location l = null ; try { l = findAndEnableBreak ( swf , f , line ) ; } catch ( InProgressException e ) { if ( Trace . error ) Trace . trace ( ( swf . getUrl ( ) ) + " still loading, breakpoint at " + f . getName ( ) + ":" + line + " not set" ) ; } if ( l != null ) col . add ( l ) ; } } } return col ; }
enable a breakpoint using the sourcefile as a template for the source file in which the breakpoint should be set .
