import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
public void createControl(Composite parent) {
Composite composite = createPageRoot(parent);
- new Label(composite, SWT.NONE).setText(PHPDebugUiMessages
+// new Label(composite, SWT.NONE).setText(PHPDebugUiMessages
+// .getString("LaunchConfigurationTab.PHPArguments.working_dir"));
+// workingDirectorySelector = new DirectorySelector(composite);
+ Group grpWorkingDir = new Group(composite, SWT.NONE);
+ grpWorkingDir.setText(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPArguments.working_dir"));
- workingDirectorySelector = new DirectorySelector(composite);
+ grpWorkingDir.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ grpWorkingDir.setLayout(new GridLayout());
+ workingDirectorySelector = new DirectorySelector(grpWorkingDir);
workingDirectorySelector
.setBrowseDialogMessage(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPArguments.working_dir_browser_message"));
}
});
- Composite defaultWorkingDirectoryComposite = new Composite(composite,
- SWT.NONE);
+ Composite defaultWorkingDirectoryComposite = new Composite(
+ grpWorkingDir, SWT.NONE);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
defaultWorkingDirectoryComposite.setLayout(layout);
.getString("LaunchConfigurationTab.PHPArguments.working_dir_use_default_message"));
defaultWorkingDirectoryComposite.pack();
- new Label(composite, SWT.NONE)
- .setText(PHPDebugUiMessages
- .getString("LaunchConfigurationTab.PHPArguments.interpreter_args_box_title"));
- interpreterArgsText = new Text(composite, SWT.MULTI | SWT.V_SCROLL
- | SWT.BORDER);
+// new Label(composite, SWT.NONE)
+// .setText(PHPDebugUiMessages
+// .getString("LaunchConfigurationTab.PHPArguments.interpreter_args_box_title"));
+ Group grpArgs = new Group(composite, SWT.NONE);
+ grpArgs.setText(PHPDebugUiMessages
+ .getString("LaunchConfigurationTab.PHPArguments.interpreter_args_box_title"));
+ grpArgs.setLayoutData(new GridData(GridData.FILL_BOTH));
+ grpArgs.setLayout(new GridLayout());
+ interpreterArgsText = new Text(grpArgs, SWT.MULTI | SWT.V_SCROLL
+ | SWT.BORDER | SWT.WRAP);
interpreterArgsText.setLayoutData(new GridData(GridData.FILL_BOTH));
- new Label(composite, SWT.NONE)
- .setText(PHPDebugUiMessages
- .getString("LaunchConfigurationTab.PHPArguments.program_args_box_title"));
- programArgsText = new Text(composite, SWT.MULTI | SWT.V_SCROLL
- | SWT.BORDER);
+// new Label(composite, SWT.NONE)
+// .setText(PHPDebugUiMessages
+// .getString("LaunchConfigurationTab.PHPArguments.program_args_box_title"));
+ Group grpProgArgs = new Group(composite, SWT.NONE);
+ grpProgArgs.setText(PHPDebugUiMessages
+ .getString("LaunchConfigurationTab.PHPArguments.program_args_box_title"));
+ grpProgArgs.setLayoutData(new GridData(GridData.FILL_BOTH));
+ grpProgArgs.setLayout(new GridLayout());
+ programArgsText = new Text(grpProgArgs, SWT.MULTI | SWT.V_SCROLL
+ | SWT.BORDER | SWT.WRAP);
programArgsText.setLayoutData(new GridData(GridData.FILL_BOTH));
}
protected Composite createPageRoot(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
GridLayout compositeLayout = new GridLayout();
- compositeLayout.marginWidth = 0;
+// compositeLayout.marginWidth = 0;
compositeLayout.numColumns = 1;
composite.setLayout(compositeLayout);
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Group;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
public void createControl(Composite parent) {
Composite composite = createPageRoot(parent);
- new Label(composite, SWT.NONE)
+// new Label(composite, SWT.NONE)
+// .setText(PHPDebugUiMessages
+// .getString("LaunchConfigurationTab.PHPEntryPoint.projectLabel"));
+// projectSelector = new PHPProjectSelector(composite);
+ Group grpProject = new Group(composite, SWT.NONE);
+ grpProject
.setText(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPEntryPoint.projectLabel"));
- projectSelector = new PHPProjectSelector(composite);
+ grpProject.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ grpProject.setLayout(new GridLayout());
+ projectSelector = new PHPProjectSelector(grpProject);
projectSelector
.setBrowseDialogMessage(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPEntryPoint.projectSelectorMessage"));
}
});
- new Label(composite, SWT.NONE).setText(PHPDebugUiMessages
+// new Label(composite, SWT.NONE).setText(PHPDebugUiMessages
+// .getString("LaunchConfigurationTab.PHPEntryPoint.fileLabel"));
+// fileSelector = new PHPFileSelector(composite, projectSelector);
+ Group grpFile = new Group(composite, SWT.NONE);
+ grpFile.setText(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPEntryPoint.fileLabel"));
- fileSelector = new PHPFileSelector(composite, projectSelector);
+ grpFile.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ grpFile.setLayout(new GridLayout());
+ fileSelector = new PHPFileSelector(grpFile, projectSelector);
fileSelector
.setBrowseDialogMessage(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPEntryPoint.fileSelectorMessage"));
protected Composite createPageRoot(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
- layout.marginWidth = 0;
+// layout.marginWidth = 0;
composite.setLayout(layout);
setControl(composite);