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;
/**
super(shell);
fIsKernel = isKernel;
fSessions = Arrays.copyOf(sessions, sessions.length);
+ setShellStyle(SWT.RESIZE);
}
// ------------------------------------------------------------------------
// 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++) {
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);
public void widgetDefaultSelected(SelectionEvent e) {
}
});
-// label.setText("");
return fDialogComposite;
}