private boolean isDefaultClasspath(IRuntimeClasspathEntry[] classpath,ILaunchConfiguration configuration){
  try {
    ILaunchConfigurationWorkingCopy wc=configuration.getWorkingCopy();
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH,true);
    IRuntimeClasspathEntry[] entries=JavaRuntime.computeUnresolvedRuntimeClasspath(wc);
    if (classpath.length == entries.length) {
      for (int i=0; i < entries.length; i++) {
        IRuntimeClasspathEntry entry=entries[i];
        if (!entry.equals(classpath[i])) {
          return false;
        }
      }
      return true;
    }
    return false;
  }
 catch (  CoreException e) {
    return false;
  }
}

private boolean isDefaultClasspath ( IRuntimeClasspathEntry [ ] classpath , ILaunchConfiguration configuration ) { try { ILaunchConfigurationWorkingCopy wc = configuration . getWorkingCopy ( ) ; wc . setAttribute ( IJavaLaunchConfigurationConstants . ATTR_DEFAULT_CLASSPATH , true ) ; IRuntimeClasspathEntry [ ] entries = JavaRuntime . computeUnresolvedRuntimeClasspath ( wc ) ; if ( classpath . length == entries . length ) { for ( int i = 0 ; i < entries . length ; i ++ ) { IRuntimeClasspathEntry entry = entries [ i ] ; if ( ! entry . equals ( classpath [ i ] ) ) { return false ; } } return true ; } return false ; } catch ( CoreException e ) { return false ; } }
returns whether the specified classpath is equivalent to the default classpath for this configuration .
