Add capability to enable events with different parameters on session,
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / dialogs / GetEventInfoDialog.java
index 8729eb4f95e7eefdcc91297e63c612a8edd90342..1f63b39ce0eeb649d703bfb1fa3d55e41b88b219 100644 (file)
@@ -30,7 +30,6 @@ import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Shell;
 
 /**
@@ -106,6 +105,7 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
         super(shell);
         fIsKernel = isKernel;
         fSessions = Arrays.copyOf(sessions, sessions.length);
+        setShellStyle(SWT.RESIZE);
     }
 
     // ------------------------------------------------------------------------
@@ -153,22 +153,19 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
         // Main dialog panel
         fDialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(1, true);
-        fDialogComposite.setLayout(layout); 
-        Label label = new Label(fDialogComposite, SWT.NONE);
-        // a simple way to make dialog wider :-)
-        label.setText("                                                                                                  "); //$NON-NLS-1$
+        fDialogComposite.setLayout(layout);
+        fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+        
         fSessionsGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
         fSessionsGroup.setText(Messages.TraceControl_EnableEventsSessionGroupName);
         layout = new GridLayout(1, true);
         fSessionsGroup.setLayout(layout); 
-//        GridData data = new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1);
         GridData data = new GridData(GridData.FILL_HORIZONTAL);
         fSessionsGroup.setLayoutData(data);
 
         fSessionsCombo = new CCombo(fSessionsGroup, SWT.READ_ONLY);
         fSessionsCombo.setToolTipText(Messages.TraceControl_EnableEventsSessionsTooltip);
         fSessionsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-//        fSessionsCombo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1));
         
         String items[] = new String[fSessions.length];
         for (int i = 0; i < items.length; i++) {
@@ -183,12 +180,10 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
         layout = new GridLayout(1, true);
         fChannelsGroup.setLayout(layout);
         data = new GridData(GridData.FILL_HORIZONTAL);
-//        data = new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1);
         fChannelsGroup.setLayoutData(data);
         
         fChannelsCombo = new CCombo(fChannelsGroup, SWT.READ_ONLY);
         fChannelsCombo.setToolTipText(Messages.TraceControl_EnableEventsChannelsTooltip);
-//        fChannelsCombo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1));
         fChannelsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
         fChannelsCombo.setEnabled(false);
 
@@ -229,7 +224,6 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
             public void widgetDefaultSelected(SelectionEvent e) {
             }
         });
-//        label.setText("");
         return fDialogComposite;
     }
 
This page took 0.024584 seconds and 5 git commands to generate.