@Override
public List<IClasspathEntry> getInitialEntries(BundleDescription project) {
System.err.println("LOADING INITIAL ENTRIES");
for( String e : project.getExecutionEnvironments() ) {
IExecutionEnvironment env = JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(e);
System.err.println("Searching in ENV " + env);
if( env == null ) {
continue;
}
// Check the default VM
if( env.getDefaultVM() != null ) {
if( onExtPath(env.getDefaultVM()) ) {
return Collections.emptyList();
} else {
IClasspathEntry cpe = getEntry(env.getDefaultVM(), project);
if( cpe != null ) {
return Collections.singletonList(cpe);
}
}
}
// Check compatible VMs
for( IVMInstall vm : env.getCompatibleVMs() ) {
if( env.isStrictlyCompatible(vm) ) {
if( onExtPath(vm) ) {
return Collections.emptyList();
} else {
IClasspathEntry cpe = getEntry(vm, project);
if( cpe != null ) {