Skip to content

Commit

Permalink
ResourceInfoPage: wrap "location" #1895
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Jun 6, 2024
1 parent 4f6248a commit 3ef39fa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ public void widgetSelected(SelectionEvent e) {
Label locationTitle = new Label(basicInfoComposite, SWT.LEFT);
locationTitle.setText(LOCATION_TITLE);
gd = new GridData();
gd.verticalAlignment = SWT.TOP;
locationTitle.setLayoutData(gd);

locationValue = new Text(basicInfoComposite, SWT.WRAP
Expand All @@ -325,6 +326,8 @@ public void widgetSelected(SelectionEvent e) {
locationValue.setText(locationStr);
gd = new GridData();
gd.horizontalAlignment = GridData.FILL;
gd.widthHint = convertWidthInCharsToPixels(MAX_VALUE_WIDTH);
gd.grabExcessHorizontalSpace = true;
locationValue.setLayoutData(gd);
locationValue.setBackground(locationValue.getDisplay()
.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
Expand Down Expand Up @@ -360,6 +363,7 @@ public void widgetSelected(SelectionEvent e) {
});

Button pathCopy = new Button(basicInfoComposite, SWT.PUSH);
pathCopy.setLayoutData(gd);
pathCopy.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_COPY));
pathCopy.setToolTipText(PATH_BUTTON_TOOLTIP);
pathCopy.addSelectionListener(new SelectionAdapter() {
Expand Down

0 comments on commit 3ef39fa

Please sign in to comment.