Project: SWT
Bug 289219 Program.findProgram("txt") returns null on Snow Leopard
Reported: 2009-09-11 10:33:46 | Status: resolved fixed

findProgram does some extra work for text edit in order to be sure that the app knows how to handle the extension. On Snow Leopard the TextEdit plist file has changed and the extra checking fails. Using LaunchServices code directly (like Carbon port) works correctly.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT Program/cocoa/org/eclipse/swt/program/Program.java