setErrorMessage("The specified directory does not contain a recognized installation");
} else {
setErrorMessage(null);
setPageComplete(true);
final KarafPlatformDetails platformDetails =
(KarafPlatformDetails) karafPlatform.getAdapter(KarafPlatformDetails.class);
platformName.setText(platformDetails.getName());
platformVersion.setText(platformDetails.getVersion());
platformDescription.setText(platformDetails.getDescription());
}
} catch (final CoreException e) {
setErrorMessage("There was an error loading the installation: " + e.getMessage());
KarafUIPluginActivator.getLogger().error("There was an error loading the installation", e);
}