Skip to content

Commit b88650b

Browse files
committed
Reduced the input field size and updated the text
1 parent b7818cd commit b88650b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EditorsPreferencePage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,16 @@ protected void createEditorReuseGroup(Composite composite) {
232232
editorReuseIndentGroup = new Composite(editorReuseGroup, SWT.LEFT);
233233
editorReuseIndentGroup.setLayout(GridLayoutFactory.fillDefaults().create());
234234
editorReuseIndentGroup
235-
.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());
235+
.setLayoutData(GridDataFactory.fillDefaults().grab(false, false).create());
236236

237237
editorReuseThresholdGroup = new Composite(editorReuseIndentGroup, SWT.LEFT);
238238
GridLayout layout = new GridLayout();
239239
layout.marginWidth = 0;
240240
editorReuseThresholdGroup.setLayout(layout);
241+
GridData gridData = GridDataFactory.fillDefaults().grab(true, false).create();
242+
gridData.widthHint = 35;
241243
editorReuseThresholdGroup
242-
.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());
244+
.setLayoutData(gridData);
243245

244246
reuseEditorsThreshold = new IntegerFieldEditor(IPreferenceConstants.REUSE_EDITORS, "", //$NON-NLS-1$
245247
editorReuseThresholdGroup);

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ PageLayout_missingRefPart=Referenced part does not exist yet: {0}.
730730
# Keys used in the reuse editor which is released as experimental.
731731
# ==============================================================================
732732
PinEditorAction_toolTip=Pin Editor
733-
WorkbenchPreference_reuseEditors=&Close oldest if there are more than
733+
WorkbenchPreference_reuseEditors=&Close editors if there are more than
734734
WorkbenchPreference_reuseEditors_closing=editors open
735735
WorkbenchPreference_reuseEditorsThresholdError=The number of opened editors should be more than 0.
736736
WorkbenchPreference_recentFiles=Size of &recently opened files list:

0 commit comments

Comments
 (0)