private boolean isProjectUsingDefaultSdk(T projectSdk){
  if (!isDefaultSdk(projectSdk)) {
    return false;
  }
  try {
    IClasspathEntry entry=ClasspathUtilities.findClasspathEntryContainer(javaProject.getRawClasspath(),doGetContainerId());
    if (entry != null) {
      if (SdkClasspathContainer.isDefaultContainerPath(doGetContainerId(),entry.getPath())) {
        return true;
      }
    }
  }
 catch (  CoreException ce) {
    CorePluginLog.logError(ce);
  }
  return false;
}

private boolean isProjectUsingDefaultSdk ( T projectSdk ) { if ( ! isDefaultSdk ( projectSdk ) ) { return false ; } try { IClasspathEntry entry = ClasspathUtilities . findClasspathEntryContainer ( javaProject . getRawClasspath ( ) , doGetContainerId ( ) ) ; if ( entry != null ) { if ( SdkClasspathContainer . isDefaultContainerPath ( doGetContainerId ( ) , entry . getPath ( ) ) ) { return true ; } } } catch ( CoreException ce ) { CorePluginLog . logError ( ce ) ; } return false ; }
returns true if the given project sdk is actually the default sdk for the workspace and the project has a classpath container entry for the given sdk that indicates that the workspace default should actually be used ( i . e . no trailing segments ) . also returns true if the project sdk is the default sdk for the workspace and the project does not have a classpath container entry for the sdk .
