setImage(TARGET_NODE_CONNECTED_ICON_FILE);
fDisconnectedImage = Activator.getDefault().loadIcon(TARGET_NODE_DISCONNECTED_ICON_FILE);
fRemoteProxy = proxy;
- fRemoteProxy.addConnectionChangeListener(this);
+ fRemoteProxy.getRemoteConnection().addConnectionChangeListener(this);
setToolTip(fRemoteProxy.getRemoteConnection().getName());
}
@Override
public void dispose() {
- fRemoteProxy.removeConnectionChangeListener(this);
+ fRemoteProxy.getRemoteConnection().removeConnectionChangeListener(this);
fRemoteProxy.dispose();
disposeControlService();
}
return !getControlService().isVersionSupported("2.2.0"); //$NON-NLS-1$
}
+ /**
+ * Checks if given version is supported by this ILTTngControlService implementation.
+ *
+ * @param version The version to check
+ * @return <code>true</code> if version is supported else <code>false</code>
+ */
+ public boolean isVersionSupported(String version) {
+ return getControlService().isVersionSupported(version);
+ }
+
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------