- Group projSelGroup = new Group(innerParent, SWT.NONE);
- projSelGroup.setLayout(new GridLayout(2, false));
- projSelGroup.setText("&Project:");
- projSelGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- Text projSelText = new Text(projSelGroup, SWT.BORDER);
- projSelText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
- projSelText.addModifyListener(e -> updateLaunchConfigurationDialog());
- Button projSelButton = new Button(projSelGroup, SWT.PUSH);
+ Label swtLabel = new Label(innerParent, SWT.NONE);
+ swtLabel.setText(label);
+ swtLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
+
+ Text text = new Text(innerParent, SWT.BORDER);
+ text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+ text.addModifyListener(e -> updateLaunchConfigurationDialog());
+
+ swtLabel.addListener(SWT.FocusIn, e -> text.setFocus());
+
+ Button browseButton = new Button(innerParent, SWT.PUSH);