To add a patch in Eclipse:
- Menu > Windows > Open perspective > Others...> Team synchronizing
- Menu > Project > Apply patch...
- Select Clipboard and paste text from patch file, click next, select file you want to patch and click finish
You can also add a patch using the "patch" command on the command line:
- Open a terminal and change into the project directory.
- Apply the patch with
patch -p0 -i patchfile
I found more information on applying patches here:
Info on applying patches