Connecting prolog and Eclipse IDE on mac os x

So I’m new to Prolog and have to do a prolog project at my university. I’ve already implemented the prolog source code and all i want to know is how to connect prolog in eclipse IDE on Mac OS X?

I have not used the eclipse IDE with prolog, but SWI-Prolog includes a bundled editor which you can use:

$ swipl                                                          
Welcome to SWI-Prolog (threaded, 64 bits, version 8.1.24)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit
For built-in help, use ?- help(Topic). or ?- apropos(Word).

1 ?- edit(file('/tmp/')).

A window will pop up where you can edit your program. It is nice because it has all kinds of bells and whistles for prolog code.

Thanks a lot @swi but what I’m looking for is how to connect prolog and java in eclipse IDE using JPL(Java Prolog) library , not using JPL in swi-prolog application but in Eclipse IDE.