Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2014-05-07 12:57:56 -0400
committerBernd Hufmann2014-05-09 14:01:50 -0400
commite866fae2d8a67985051ef8afba50ed37b4eea105 (patch)
tree788e4106b53b766959314fea46f5985e74eeb32b
parent5c47c9d842ab8445918311972f8f41e7588aca4b (diff)
downloadorg.eclipse.linuxtools-e866fae2d8a67985051ef8afba50ed37b4eea105.tar.gz
org.eclipse.linuxtools-e866fae2d8a67985051ef8afba50ed37b4eea105.tar.xz
org.eclipse.linuxtools-e866fae2d8a67985051ef8afba50ed37b4eea105.zip
lttng-control: Fix creation of snapshot sessions
Change-Id: Idc0279fdb7f94158537f38b8a1d9dd1ea80f45d1 Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/26161 Tested-by: Hudson CI Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.control.ui/src/org/eclipse/linuxtools/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.control.ui/src/org/eclipse/linuxtools/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java b/lttng/org.eclipse.linuxtools.lttng2.control.ui/src/org/eclipse/linuxtools/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java
index 9389d625d1..dd090fe55a 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.control.ui/src/org/eclipse/linuxtools/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.control.ui/src/org/eclipse/linuxtools/internal/lttng2/control/ui/views/dialogs/CreateSessionDialog.java
@@ -297,7 +297,13 @@ public class CreateSessionDialog extends TitleAreaDialog implements ICreateSessi
fSnapshotButton.setToolTipText(Messages.TraceControl_CreateSessionSnapshotTooltip);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
data.horizontalSpan = 4;
- fSnapshotButton.setData(data);
+ fSnapshotButton.setLayoutData(data);
+ fSnapshotButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ updateEnablement();
+ }
+ });
}
// layout widgets

Back to the top