}
public static void openExternalEditor(File file, IWorkbenchWindow fWindow) {
try {//eclipse 3.0 & 3.1
JavaFileEditorInput.class.getConstructor(new Class[] { File.class });
new OpenExternalFileAction30().run(file, fWindow);
} catch (Exception e) {
try {
Class class32 = Class.forName("org.jayasoft.woj.client.util.openexternal.OpenExternalFileAction32"); //$NON-NLS-1$
Object opener32 = class32.newInstance();
Method m = class32.getMethod("run", new Class[]{File.class, IWorkbenchWindow.class}); //$NON-NLS-1$