private void updateRuntime() {
IRuntimeWorkingCopy workingCopy = getRuntimeWorkingCopy();
if (workingCopy != null) {
// workCopy will be instance of ServerDelegate classs.
// We need to get the params, so IKarafRuntime will be enough.
IKarafRuntimeWorkingCopy karafRuntimeWorkingCopy = (IKarafRuntimeWorkingCopy) workingCopy
.loadAdapter(IKarafRuntimeWorkingCopy.class,
new NullProgressMonitor());
if (karafRuntimeWorkingCopy != null) {
String installDir = model.getKarafInstallDir();
IPath path = new Path(installDir);