final EmbeddedArtifact supportBundle = artifactLocator.loadToolingSupportBundle();
final Version embeddedVersion = new Version(supportBundle.getVersion());
ISlingLaunchpadServer launchpadServer = (ISlingLaunchpadServer) getServer().loadAdapter(SlingLaunchpadServer.class,
monitor);
if (remoteVersion == null || remoteVersion.compareTo(embeddedVersion) < 0) {
InputStream contents = null;
try {
contents = supportBundle.openInputStream();
client.installBundle(contents, supportBundle.getName());
} finally {
IOUtils.closeQuietly(contents);
}
remoteVersion = embeddedVersion;
}
launchpadServer.setBundleVersion(EmbeddedArtifactLocator.SUPPORT_BUNDLE_SYMBOLIC_NAME, remoteVersion,
monitor);
monitor.worked(1); // 5/5 done
} catch ( IOException e) {