URLClassLoader classLoader = new URLClassLoader(new URL[] { file.toURI().toURL() }, this.getClass().getClassLoader());
@SuppressWarnings("unchecked")
Class aboutClass = classLoader.loadClass(Constants.GWT_ABOUT_CLASS);
Field versionField = aboutClass.getDeclaredField("GWT_VERSION");
String version = (String) versionField.get(aboutClass);
GwtRuntime gwtRuntime = new GwtRuntime();
gwtRuntime.setName(version);
gwtRuntime.setLocation(location);
runtimes.add(gwtRuntime);
updateTable(null);
} catch (MalformedURLException e) {
Activator.logException(e);
MessageDialog.openError(getShell(), "Error Occured", "Could not determine the GWT version.");