lttng: Update for latest org.eclipse.remote API
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 18 May 2015 20:07:06 +0000 (16:07 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Tue, 19 May 2015 14:14:16 +0000 (10:14 -0400)
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>
org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/dialogs/NewConnectionDialog.java

index 3eae286ff6c5fcb6209739030a3c5df56453e0e7..1f307491ce370aeafe54bcaa1218c8f5ef811395 100644 (file)
@@ -305,7 +305,7 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
             return null;
         }
 
-        if ((result.getCapabilities() & IRemoteConnectionType.CAPABILITY_ADD_CONNECTIONS) == 0) {
+        if (!result.canAdd()) {
             return null;
         }
 
@@ -316,8 +316,7 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
         if (conn == null) {
             return false;
         }
-        IRemoteConnectionType rs = conn.getConnectionType();
-        return (rs.getCapabilities() & IRemoteConnectionType.CAPABILITY_EDIT_CONNECTIONS) != 0;
+        return conn.getConnectionType().canEdit();
     }
 
     private void onNewConnection() {
This page took 0.029955 seconds and 5 git commands to generate.