File tree Expand file tree Collapse file tree 5 files changed +29
-2
lines changed
org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal Expand file tree Collapse file tree 5 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ PreferenceKeywords.Editing = editing
231
231
PreferenceKeywords.Appearance = appearance
232
232
PreferenceKeywords.ColorLabels = color label
233
233
PreferenceKeywords.General = click background heap
234
+ PreferenceKeywords.ViewLimit = view limit maximum elements items
234
235
PreferenceKeywords.Themes = themes
235
236
PreferenceKeywords.AppearancePage = presentation MRU dark light tabs
236
237
PreferenceKeywords.Tabs = tab
Original file line number Diff line number Diff line change 455
455
<keyword
456
456
id =" org.eclipse.ui.ide.general"
457
457
label =" %PreferenceKeywords.General" />
458
+ <keyword
459
+ id =" org.eclipse.ui.ide.viewlimit"
460
+ label =" %PreferenceKeywords.ViewLimit" />
458
461
<keyword
459
462
id =" org.eclipse.ui.ide.themes"
460
463
label =" %PreferenceKeywords.Themes" />
564
567
class =" org.eclipse.ui.internal.ide.dialogs.IDEWorkbenchPreferencePage"
565
568
id =" org.eclipse.ui.preferencePages.Workbench" >
566
569
<keywordReference id =" org.eclipse.ui.ide.general" />
570
+ <keywordReference id =" org.eclipse.ui.ide.viewlimit" />
567
571
</page >
568
572
<page
569
573
name =" %PreferencePages.Globalization"
Original file line number Diff line number Diff line change @@ -731,6 +731,7 @@ public class WorkbenchMessages extends NLS {
731
731
public static String WorkbenchPreference_workbenchSaveInterval ;
732
732
public static String WorkbenchPreference_workbenchSaveIntervalError ;
733
733
public static String WorkbenchPreference_largeViewLimit ;
734
+ public static String WorkbenchPreference_largeViewLimitTooltip ;
734
735
public static String WorkbenchPreference_largeViewLimitError ;
735
736
public static String WorkbenchEditorsAction_label ;
736
737
public static String WorkbookEditorsAction_label ;
Original file line number Diff line number Diff line change 37
37
import org .eclipse .swt .widgets .Control ;
38
38
import org .eclipse .swt .widgets .Group ;
39
39
import org .eclipse .swt .widgets .Label ;
40
+ import org .eclipse .swt .widgets .Text ;
40
41
import org .eclipse .ui .IWorkbench ;
41
42
import org .eclipse .ui .IWorkbenchPreferenceConstants ;
42
43
import org .eclipse .ui .IWorkbenchPreferencePage ;
@@ -158,7 +159,24 @@ protected void createLargeViewLimitPref(Composite composite) {
158
159
groupComposite .setLayoutData (gd );
159
160
160
161
largeViewLimit = new IntegerFieldEditor (IWorkbenchPreferenceConstants .LARGE_VIEW_LIMIT ,
161
- WorkbenchMessages .WorkbenchPreference_largeViewLimit , groupComposite );
162
+ WorkbenchMessages .WorkbenchPreference_largeViewLimit , groupComposite ) {
163
+
164
+ @ Override
165
+ protected Text createTextWidget (Composite parent ) {
166
+ Text w = super .createTextWidget (parent );
167
+ w .setToolTipText (WorkbenchMessages .WorkbenchPreference_largeViewLimitTooltip );
168
+ return w ;
169
+ }
170
+
171
+ @ Override
172
+ public Label getLabelControl (Composite parent ) {
173
+ Label label = super .getLabelControl (parent );
174
+ if (label != null ) {
175
+ label .setToolTipText (WorkbenchMessages .WorkbenchPreference_largeViewLimitTooltip );
176
+ }
177
+ return label ;
178
+ }
179
+ };
162
180
163
181
largeViewLimit .setPreferenceStore (getPreferenceStore ());
164
182
largeViewLimit .setPage (this );
Original file line number Diff line number Diff line change @@ -711,7 +711,10 @@ WorkbenchPreference_workbenchSaveIntervalError=The workbench save interval shoul
711
711
WorkbenchEditorsAction_label =S&witch to Editor...
712
712
WorkbookEditorsAction_label =&Quick Switch Editor
713
713
714
- WorkbenchPreference_largeViewLimit =Default increment for displaying elements in UI:
714
+ WorkbenchPreference_largeViewLimit =Initial maximum number of elements shown in views:
715
+ WorkbenchPreference_largeViewLimitTooltip =Use 0 for no limit. \
716
+ If the number of elements exceeds given limit, user interaction is required to show more elements. \
717
+ This limit is a hint: not all views support this limit or may use different one.
715
718
WorkbenchPreference_largeViewLimitError =The limit should be an integer between 0 and {0}.
716
719
717
720
WorkbenchEditorsDialog_title =Switch to Editor
You can’t perform that action at this time.
0 commit comments