Community
Participate
Working Groups
Created attachment 105067 [details] FSEvents refresh provider plugin source project The attached is a refresh provider implemented using the Leopard FSEvents notification library. The plugin is actually from the WOLips project, so needs to be cleaned up and put into an Eclipse-friendly layout, but I'm attaching it as-is for now so you can try it out.
I installed your plug-in in my Eclipse. However changes being made in the file system are not reflected in Eclipse. I'm on Mac OSX 10.5 Leopard. Anyway I think this is an interesting idea to use FSEvents lib and we can try to make it in 3.5.
Do you have autorefresh enabled? Also, this is actually part of a larger build system (from the WOLips project), so I'm actually not sure if this will build as a single plugin ... Try importing the project from inside this zip and run a WOLips Application and test it on a debug workspace. I'll attach a binary build of this plugin as well in case it's just not building properly so you can try it again on your primary Eclipse. If it's loading properly, you should see in your Console or in your .log that it says it's monitoring your project folders.
Created attachment 105154 [details] Binary build of the same (the original is the source project)
Created attachment 121571 [details] fsevents / eclipse I've been playing a bit with FSEvents; I've attached my updated version (based on the WOLips stuff) that also has a little test class that helps to check that the JNI calls work correctly. I haven't tested much - but my machine seems to be a fair bit quicker when using it. I was marginally surprised that the only native refresh provider is Win32 - not even a linux inotify based one... I'd love to see it in 3.5 as the cocoa builds seem to be progressing fast.
*** Bug 28234 has been marked as a duplicate of this bug. ***
This seems like something that would be useful for Mac users. Is this patch, or https://github.com/zch/AutoRefresher ever likely to get integrated?
Java supports file monitoring since java 7 through the java.nio.file.WatchService. I think this would be a really nice feature for mac users.
(In reply to Clement Guillaume from comment #7) > Java supports file monitoring since java 7 through the > java.nio.file.WatchService. > I think this would be a really nice feature for mac users. NIO on Mac uses pooling for now: https://hg.openjdk.java.net/jdk/jdk/file/19d0b382f086/src/java.base/macosx/classes/sun/nio/fs/BsdFileSystem.java Can we push this somehow forward?
(In reply to Dawid Pakula from comment #8) > Can we push this somehow forward? Yes. We need someone to contribute the patch via Gerrit, and someone to test it on Mac. See https://wiki.eclipse.org/Platform/How_to_Contribute.
I found already pending patch on Gerrit: https://git.eclipse.org/r/#/c/74291/ for even older bug: 108697 ;)
(In reply to Dawid Pakula from comment #10) > I found already pending patch on Gerrit: > https://git.eclipse.org/r/#/c/74291/ for even older bug: 108697 ;) Cool. @Mickael: any interest to re-base and update your patch?
Sorry, I won't have anytime to look into this in the next couple of months.