Skip to content

Commit 3ef39fa

Browse files
committed
ResourceInfoPage: wrap "location" eclipse-platform#1895
eclipse-platform#1895
1 parent 4f6248a commit 3ef39fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ public void widgetSelected(SelectionEvent e) {
316316
Label locationTitle = new Label(basicInfoComposite, SWT.LEFT);
317317
locationTitle.setText(LOCATION_TITLE);
318318
gd = new GridData();
319+
gd.verticalAlignment = SWT.TOP;
319320
locationTitle.setLayoutData(gd);
320321

321322
locationValue = new Text(basicInfoComposite, SWT.WRAP
@@ -325,6 +326,8 @@ public void widgetSelected(SelectionEvent e) {
325326
locationValue.setText(locationStr);
326327
gd = new GridData();
327328
gd.horizontalAlignment = GridData.FILL;
329+
gd.widthHint = convertWidthInCharsToPixels(MAX_VALUE_WIDTH);
330+
gd.grabExcessHorizontalSpace = true;
328331
locationValue.setLayoutData(gd);
329332
locationValue.setBackground(locationValue.getDisplay()
330333
.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
@@ -360,6 +363,7 @@ public void widgetSelected(SelectionEvent e) {
360363
});
361364

362365
Button pathCopy = new Button(basicInfoComposite, SWT.PUSH);
366+
pathCopy.setLayoutData(gd);
363367
pathCopy.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_COPY));
364368
pathCopy.setToolTipText(PATH_BUTTON_TOOLTIP);
365369
pathCopy.addSelectionListener(new SelectionAdapter() {

0 commit comments

Comments
 (0)