Lines 318-324
Link Here
|
318 |
Composite buttonsComposite = new Composite(contents, SWT.NONE); |
318 |
Composite buttonsComposite = new Composite(contents, SWT.NONE); |
319 |
buttonsComposite.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, |
319 |
buttonsComposite.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, |
320 |
false, 1, 1)); |
320 |
false, 1, 1)); |
321 |
GridLayout layout = new GridLayout(1, true); |
321 |
GridLayout layout = new GridLayout(0, true); |
322 |
layout.marginWidth = 0; |
322 |
layout.marginWidth = 0; |
323 |
layout.marginHeight = 0; |
323 |
layout.marginHeight = 0; |
324 |
buttonsComposite.setLayout(layout); |
324 |
buttonsComposite.setLayout(layout); |
Lines 355-382
Link Here
|
355 |
setButtonLayoutData(folderButton); |
355 |
setButtonLayoutData(folderButton); |
356 |
} |
356 |
} |
357 |
|
357 |
|
358 |
variableButton = new Button(buttonsComposite, SWT.PUSH); |
358 |
// the workspace path variable manager does not support variables. |
359 |
variableButton.setText(IDEWorkbenchMessages.PathVariableDialog_variable); |
359 |
if (currentResource != null) { |
360 |
|
360 |
layout.numColumns++; |
361 |
variableButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, |
361 |
variableButton = new Button(buttonsComposite, SWT.PUSH); |
362 |
false)); |
362 |
variableButton.setText(IDEWorkbenchMessages.PathVariableDialog_variable); |
363 |
|
363 |
|
364 |
variableButton.addSelectionListener(new SelectionAdapter() { |
364 |
variableButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, |
365 |
public void widgetSelected(SelectionEvent e) { |
365 |
false)); |
366 |
selectVariable(); |
366 |
|
367 |
} |
367 |
variableButton.addSelectionListener(new SelectionAdapter() { |
368 |
}); |
368 |
public void widgetSelected(SelectionEvent e) { |
369 |
setButtonLayoutData(variableButton); |
369 |
selectVariable(); |
|
|
370 |
} |
371 |
}); |
372 |
setButtonLayoutData(variableButton); |
370 |
|
373 |
|
371 |
// variable value label |
374 |
// variable value label |
372 |
variableResolvedValueLabel = new Label(contents, SWT.LEAD); |
375 |
variableResolvedValueLabel = new Label(contents, SWT.LEAD); |
373 |
variableResolvedValueLabel.setText(resolvedValueLabelText); |
376 |
variableResolvedValueLabel.setText(resolvedValueLabelText); |
374 |
|
377 |
|
375 |
// variable value field. Attachments done after all widgets created. |
378 |
// variable value field. Attachments done after all widgets created. |
376 |
variableResolvedValueField = new Label(contents, SWT.LEAD | SWT.SINGLE | SWT.READ_ONLY); |
379 |
variableResolvedValueField = new Label(contents, SWT.LEAD | SWT.SINGLE | SWT.READ_ONLY); |
377 |
variableResolvedValueField.setText(TextProcessor.process(getVariableResolvedValue())); |
380 |
variableResolvedValueField.setText(TextProcessor.process(getVariableResolvedValue())); |
378 |
variableResolvedValueField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, |
381 |
variableResolvedValueField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, |
379 |
false, 2, 1)); |
382 |
false, 2, 1)); |
|
|
383 |
} |
380 |
} |
384 |
} |
381 |
|
385 |
|
382 |
private IPathVariableManager getPathVariableManager() { |
386 |
private IPathVariableManager getPathVariableManager() { |