public static void createFile(IProject project,String relativePath) throws IOException {
  IPath root=getSourceLocation(project);
  IPath path=Path.fromOSString(relativePath);
  Preconditions.checkArgument(!path.isAbsolute());
  PathTestUtil.touch(root.append(path));
}

public static void createFile ( IProject project , String relativePath ) throws IOException { IPath root = getSourceLocation ( project ) ; IPath path = Path . fromOSString ( relativePath ) ; Preconditions . checkArgument ( ! path . isAbsolute ( ) ) ; PathTestUtil . touch ( root . append ( path ) ) ; }
creates a file relative to the project ' s " src " folder . files created this way become visible after the next refresh operation .
