IRemoteConnectionType#getCapabilities was removed, and replaced
with more direct capability-querying methods.
Change-Id: I5b14ab63320c2c0949d0d89a60fa7a2850f66bf3
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/48106
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
return null;
}
- if ((result.getCapabilities() & IRemoteConnectionType.CAPABILITY_ADD_CONNECTIONS) == 0) {
+ if (!result.canAdd()) {
return null;
}
if (conn == null) {
return false;
}
- IRemoteConnectionType rs = conn.getConnectionType();
- return (rs.getCapabilities() & IRemoteConnectionType.CAPABILITY_EDIT_CONNECTIONS) != 0;
+ return conn.getConnectionType().canEdit();
}
private void onNewConnection() {