public List getLaunchConfigurations(IJavaProject pProject) throws CoreException
  {
    List aList = new ArrayList();
    ILaunchConfiguration[] launches = DebugPlugin.getDefault()
        .getLaunchManager().getLaunchConfigurations();

    for (ILaunchConfiguration i : launches)
    {
      String sProjectName = i.getAttribute(
          IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
      //Null category seems to mean only those that are runtime configurations
      //and not those like ant build.xml targets.
      if (sProjectName.equalsIgnoreCase(pProject.getElementName()) && i.getCategory() == null) {
        aList.add(i);
      }
      //System.out.println(i.getName());
      //System.out.println(i.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,""));
    }
    return aList;
  }