From 095910e7bf02a5ca876cc4b144b7879874285e18 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 10 Jan 2007 08:54:50 +0000 Subject: [PATCH] Smart home/end is now handled by general text editor --- .../ui/preferences/CEditorPreferencePage.java | 11 ----------- .../org/eclipse/cdt/ui/CUIPreferenceInitializer.java | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java index a1b244d3c75..b38dd52d9a3 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java @@ -77,17 +77,6 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo } public static void initDefaults(IPreferenceStore store) { - - // bug 84414: enable smart home/end handling - // This is a hidden feature of the Eclipse TextEditor: - // If enabled, the HOME button positions the cursor to the first - // non-whitespace character of the line (ie. the logical start of - // the line). Pressing it a second time, positions the cursor to the - // first character of the line, ie. to the physical start of the line. - // The END button works correspondingly for the end of the line. - // JDT also enables this feature. - store.setDefault(AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END, true); - store.setDefault(CEditor.SUB_WORD_NAVIGATION, true); store.setDefault(CEditor.MATCHING_BRACKETS, true); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java index a4ac05a7ca4..19c910de7e8 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java @@ -87,6 +87,7 @@ public class CUIPreferenceInitializer extends AbstractPreferenceInitializer { store.setToDefault(AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT); store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE); + store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SMART_HOME_END); } }