public void addFile(String path) throws IOException {
  File newFile=new File(path);
  if (!newFile.exists()) {
    throw new IOException("Could not add file to project: " + newFile.getAbsolutePath());
  }
  if (DelphiUtils.acceptFile(newFile.getAbsolutePath())) {
    files.add(newFile);
  }
}

public void addFile ( String path ) throws IOException { File newFile = new File ( path ) ; if ( ! newFile . exists ( ) ) { throw new IOException ( "Could not add file to project: " + newFile . getAbsolutePath ( ) ) ; } if ( DelphiUtils . acceptFile ( newFile . getAbsolutePath ( ) ) ) { files . add ( newFile ) ; } }
adds a source file to project
