Close, but Eclipse actually has its own toolkit: SWT.
All of that said, SWT and Eclipse do know that they are running on MacOS. It would be possible to mimic the same behavior, but that’s hard to do because there are so many minute details per platform.