public static List < IClasspathEntry > getDefaultSourceClassPathEntries ( IPath projectFolder ) { final IPath srcJava = projectFolder . append ( Path . fromPortableString ( SARLConfig . FOLDER_SOURCE_JAVA ) ) ; final IClasspathEntry srcJavaEntry = JavaCore . newSourceEntry ( srcJava . makeAbsolute ( ) ) ; final IPath srcSarl = projectFolder . append ( Path . fromPortableString ( SARLConfig . FOLDER_SOURCE_SARL ) ) ; final IClasspathEntry srcSarlEntry = JavaCore . newSourceEntry ( srcSarl . makeAbsolute ( ) ) ; final IPath srcGeneratedSources = projectFolder . append ( Path . fromPortableString ( SARLConfig . FOLDER_SOURCE_GENERATED ) ) ; final IClasspathAttribute attr = JavaCore . newClasspathAttribute ( IClasspathAttribute . IGNORE_OPTIONAL_PROBLEMS , Boolean . TRUE . toString ( ) ) ; final IClasspathEntry srcGeneratedSourcesEntry = JavaCore . newSourceEntry ( srcGeneratedSources . makeAbsolute ( ) , ClasspathEntry . INCLUDE_ALL , ClasspathEntry . EXCLUDE_NONE , null /*output location*/ , new IClasspathAttribute [ ] { attr } ) ; final IPath srcResources = projectFolder . append ( Path . fromPortableString ( SARLConfig . FOLDER_RESOURCES ) ) ; final IClasspathEntry srcResourcesEntry = JavaCore . newSourceEntry ( srcResources . makeAbsolute ( ) ) ; return Arrays . asList ( srcSarlEntry , srcJavaEntry , srcResourcesEntry , srcGeneratedSourcesEntry ) ; }
Replies the default source entries for a SARL project .