|
Lines 11-20
Link Here
|
| 11 |
|
11 |
|
| 12 |
package org.eclipse.ui.internal.dialogs; |
12 |
package org.eclipse.ui.internal.dialogs; |
| 13 |
|
13 |
|
|
|
14 |
import com.ibm.icu.text.Collator; |
| 14 |
import java.util.Arrays; |
15 |
import java.util.Arrays; |
| 15 |
import java.util.Comparator; |
16 |
import java.util.Comparator; |
| 16 |
import java.util.Locale; |
17 |
import java.util.Locale; |
| 17 |
|
|
|
| 18 |
import org.eclipse.core.runtime.IConfigurationElement; |
18 |
import org.eclipse.core.runtime.IConfigurationElement; |
| 19 |
import org.eclipse.core.runtime.IProgressMonitor; |
19 |
import org.eclipse.core.runtime.IProgressMonitor; |
| 20 |
import org.eclipse.core.runtime.IStatus; |
20 |
import org.eclipse.core.runtime.IStatus; |
|
Lines 65-72
Link Here
|
| 65 |
import org.eclipse.ui.themes.ITheme; |
65 |
import org.eclipse.ui.themes.ITheme; |
| 66 |
import org.eclipse.ui.themes.IThemeManager; |
66 |
import org.eclipse.ui.themes.IThemeManager; |
| 67 |
|
67 |
|
| 68 |
import com.ibm.icu.text.Collator; |
|
|
| 69 |
|
| 70 |
/** |
68 |
/** |
| 71 |
* The ViewsPreferencePage is the page used to set preferences for the |
69 |
* The ViewsPreferencePage is the page used to set preferences for the |
| 72 |
* appearance of the workbench. Originally this applied only to views but now |
70 |
* appearance of the workbench. Originally this applied only to views but now |
|
Lines 76-81
Link Here
|
| 76 |
IWorkbenchPreferencePage { |
74 |
IWorkbenchPreferencePage { |
| 77 |
|
75 |
|
| 78 |
private Button showTextOnPerspectiveBar; |
76 |
private Button showTextOnPerspectiveBar; |
|
|
77 |
|
| 78 |
private Button showFastViewBarButton; |
| 79 |
|
79 |
|
| 80 |
/* |
80 |
/* |
| 81 |
* change the tab style of the workbench |
81 |
* change the tab style of the workbench |
|
Lines 138-143
Link Here
|
| 138 |
|
138 |
|
| 139 |
private String showTextOnPerspBar = INITIAL_VAL; |
139 |
private String showTextOnPerspBar = INITIAL_VAL; |
| 140 |
|
140 |
|
|
|
141 |
private String showFastViewBar = INITIAL_VAL; |
| 142 |
|
| 141 |
private int editorAlignment; |
143 |
private int editorAlignment; |
| 142 |
|
144 |
|
| 143 |
private boolean editorAlignmentChanged = false; |
145 |
private boolean editorAlignmentChanged = false; |
|
Lines 231-236
Link Here
|
| 231 |
createViewTabButtonGroup(composite); |
233 |
createViewTabButtonGroup(composite); |
| 232 |
createPerspBarTabButtonGroup(composite); |
234 |
createPerspBarTabButtonGroup(composite); |
| 233 |
createShowTextOnPerspectiveBarPref(composite); |
235 |
createShowTextOnPerspectiveBarPref(composite); |
|
|
236 |
createShowFastViewBarPref(composite); |
| 234 |
createThemeCombo(composite); |
237 |
createThemeCombo(composite); |
| 235 |
createThemeDescriptionText(composite); |
238 |
createThemeDescriptionText(composite); |
| 236 |
createShowTraditionalStyleTabsPref(composite); |
239 |
createShowTraditionalStyleTabsPref(composite); |
|
Lines 613-618
Link Here
|
| 613 |
perspLeftButton.setEnabled(override); |
616 |
perspLeftButton.setEnabled(override); |
| 614 |
perspTopRightButton.setEnabled(override); |
617 |
perspTopRightButton.setEnabled(override); |
| 615 |
showTextOnPerspectiveBar.setEnabled(override); |
618 |
showTextOnPerspectiveBar.setEnabled(override); |
|
|
619 |
showFastViewBarButton.setEnabled(override); |
| 616 |
} |
620 |
} |
| 617 |
|
621 |
|
| 618 |
private void refreshPresentationCombo() { |
622 |
private void refreshPresentationCombo() { |
|
Lines 778-783
Link Here
|
| 778 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR)); |
782 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR)); |
| 779 |
// text on perspective bar should be set to default on OK or Apply |
783 |
// text on perspective bar should be set to default on OK or Apply |
| 780 |
showTextOnPerspBar = INITIAL_VAL; |
784 |
showTextOnPerspBar = INITIAL_VAL; |
|
|
785 |
showFastViewBarButton |
| 786 |
.setSelection(apiStore |
| 787 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_FAST_VIEW_BAR)); |
| 788 |
showFastViewBar = INITIAL_VAL; |
| 781 |
|
789 |
|
| 782 |
// fast view bar should be set to default on OK or Apply |
790 |
// fast view bar should be set to default on OK or Apply |
| 783 |
fastViewLoc = INITIAL_VAL; |
791 |
fastViewLoc = INITIAL_VAL; |
|
Lines 855-860
Link Here
|
| 855 |
showTextOnPerspectiveBar.setSelection(false); |
863 |
showTextOnPerspectiveBar.setSelection(false); |
| 856 |
showTextOnPerspBar = String.valueOf(false); |
864 |
showTextOnPerspBar = String.valueOf(false); |
| 857 |
|
865 |
|
|
|
866 |
showFastViewBarButton.setSelection(true); |
| 867 |
showFastViewBar = String.valueOf(true); |
| 868 |
|
| 858 |
// fast view bar on the left (hidden pref, set it directly) |
869 |
// fast view bar on the left (hidden pref, set it directly) |
| 859 |
fastViewLoc = IWorkbenchPreferenceConstants.LEFT; |
870 |
fastViewLoc = IWorkbenchPreferenceConstants.LEFT; |
| 860 |
|
871 |
|
|
Lines 917-922
Link Here
|
| 917 |
|
928 |
|
| 918 |
/** |
929 |
/** |
| 919 |
* Create the button and text that support setting the preference for |
930 |
* Create the button and text that support setting the preference for |
|
|
931 |
* showing fast view bar. |
| 932 |
*/ |
| 933 |
protected void createShowFastViewBarPref(Composite composite) { |
| 934 |
IPreferenceStore apiStore = PrefUtil.getAPIPreferenceStore(); |
| 935 |
|
| 936 |
showFastViewBarButton = createCheckButton( |
| 937 |
composite, |
| 938 |
WorkbenchMessages.WorkbenchPreference_showFastViewBar, |
| 939 |
apiStore |
| 940 |
.getBoolean(IWorkbenchPreferenceConstants.SHOW_FAST_VIEW_BAR)); |
| 941 |
} |
| 942 |
|
| 943 |
/** |
| 944 |
* Create the button and text that support setting the preference for |
| 920 |
* showing text labels on the perspective switching bar |
945 |
* showing text labels on the perspective switching bar |
| 921 |
*/ |
946 |
*/ |
| 922 |
protected void createShowTraditionalStyleTabsPref(Composite composite) { |
947 |
protected void createShowTraditionalStyleTabsPref(Composite composite) { |
|
Lines 974-979
Link Here
|
| 974 |
showTextOnPerspectiveBar |
999 |
showTextOnPerspectiveBar |
| 975 |
.setSelection(apiStore |
1000 |
.setSelection(apiStore |
| 976 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR)); |
1001 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR)); |
|
|
1002 |
showFastViewBarButton |
| 1003 |
.setSelection(apiStore |
| 1004 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_FAST_VIEW_BAR)); |
| 977 |
showTraditionalStyleTabs |
1005 |
showTraditionalStyleTabs |
| 978 |
.setSelection(apiStore |
1006 |
.setSelection(apiStore |
| 979 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS)); |
1007 |
.getDefaultBoolean(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS)); |
|
Lines 1039-1044
Link Here
|
| 1039 |
showTextOnPerspectiveBar.getSelection()); |
1067 |
showTextOnPerspectiveBar.getSelection()); |
| 1040 |
} |
1068 |
} |
| 1041 |
|
1069 |
|
|
|
1070 |
if (showFastViewBar.equals(INITIAL_VAL) && !override) { |
| 1071 |
apiStore |
| 1072 |
.setToDefault(IWorkbenchPreferenceConstants.SHOW_FAST_VIEW_BAR); |
| 1073 |
} else { |
| 1074 |
apiStore.setValue(IWorkbenchPreferenceConstants.SHOW_FAST_VIEW_BAR, |
| 1075 |
showFastViewBarButton.getSelection()); |
| 1076 |
} |
| 1077 |
|
| 1042 |
if (editorAlignmentChanged) { |
1078 |
if (editorAlignmentChanged) { |
| 1043 |
if (editorAlignment == INITIAL_LOC_INT) { |
1079 |
if (editorAlignment == INITIAL_LOC_INT) { |
| 1044 |
apiStore |
1080 |
apiStore |