/**
   * Output a message with the list of missing dependencies and info on how turn download on if it
   * was disabled.
   */
  private void reportMissingSources() {
    if (missingSourceDependencies.isEmpty()) {
      return;
    }

    StringBuffer msg = new StringBuffer();

    if (getDownloadSources()) {
      msg.append(Messages.getString("sourcesnotavailable")); // $NON-NLS-1$
    } else {
      msg.append(Messages.getString("sourcesnotdownloaded")); // $NON-NLS-1$
    }

    for (Iterator it = missingSourceDependencies.iterator(); it.hasNext(); ) {
      IdeDependency art = (IdeDependency) it.next();
      msg.append(Messages.getString("sourcesmissingitem", art.getId())); // $NON-NLS-1$
    }
    msg.append("\n"); // $NON-NLS-1$

    getLog().info(msg); // $NON-NLS-1$
  }