<s> package org . eclipse . jdt . internal . core ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . resources . ResourcesPlugin ; import org . eclipse . core . runtime . IStatus ; import org . eclipse . jdt . core . IClasspathEntry ; import org . eclipse . jdt . core . IJavaElement ; import org . eclipse . jdt . core . JavaCore ; import org . eclipse . jdt . core . JavaModelException ; public class ExternalJavaProject extends JavaProject { public static final String EXTERNAL_PROJECT_NAME = " " ; public ExternalJavaProject ( IClasspathEntry [ ] rawClasspath ) { super ( ResourcesPlugin . getWorkspace ( ) . getRoot ( ) . getProject ( EXTERNAL_PROJECT_NAME ) , JavaModelManager . getJavaModelManager ( ) . getJavaModel ( ) ) ; try { getPerProjectInfo ( ) . setRawClasspath ( rawClasspath , defaultOutputLocation ( ) , JavaModelStatus . VERIFIED_OK ) ; } catch ( JavaModelException e ) { } } public boolean equals ( Object o ) { return this == o ; } public boolean exists ( ) { return false ; } public String getOption ( String optionName , boolean inheritJavaCoreOptions ) { if ( JavaCore . COMPILER_PB_FORBIDDEN_REFERENCE . equals ( optionName ) || JavaCore . COMPILER_PB_DISCOURAGED_REFERENCE . equals ( optionName ) ) return JavaCore . IGNORE ; return super . getOption ( optionName , inheritJavaCoreOptions ) ; } public boolean isOnClasspath ( IJavaElement element ) { return false ; } public boolean isOnClasspath ( IResource resource ) { return false ; } protected IStatus validateExistence ( IResource underlyingResource ) { return JavaModelStatus . VERIFIED_OK ; } } </s>