diff --git a/core/org.eclipse.cdt.ui/plugin.properties b/core/org.eclipse.cdt.ui/plugin.properties
index 07261fd7396..202b774b516 100644
--- a/core/org.eclipse.cdt.ui/plugin.properties
+++ b/core/org.eclipse.cdt.ui/plugin.properties
@@ -193,8 +193,9 @@ CPluginBuildPreferencePage.name=Build
CPluginBuildConsolePreferencePage.name=Console
CPluginGlobalBuildLogPreferencePage.name=Logging
CPluginFileTypesPreferencePage.name=File Types
-CodeFormatterPreferencePage.name=Code Style
+CodeStylePreferencePage.name=Code Style
codeTemplatePreferencePage.name=Code Templates
+codeFormatterPreferencePage.name=Formatter
nameStylePreferencePage.name=Name Style
CodeAssistPreferencePage.name=Content Assist
CodeAssistAdvancedPreferencePage.name=Advanced
@@ -560,9 +561,10 @@ workingSetConfigurationsExtensionPoint=Working Set Configurations
# Keywords for Preferences
preferenceKeywords.common=c cpp cplusplus cdt
-preferenceKeywords.codestyle=profile codestyle project specific comment indentation brace white space blank line new control statement wrapping tab parenthesis bracket
+preferenceKeywords.codeformatter=profile codestyle project specific comment indentation brace white space blank line new control statement wrapping tab parenthesis bracket
+preferenceKeywords.codestyle=class member visibility order ordering
preferenceKeywords.codetemplates=comment code constructor method file type content
-preferenceKeywords.namestyle=name file getter setter
+preferenceKeywords.namestyle=name file getter setter field variable
preferenceKeywords.todo=case sensitive task tag todo xxx fix fixme project comments
preferenceKeywords.indexer=index skip references type macro search build configuration cache memory performance
@@ -625,4 +627,4 @@ transfer.EditorBehavior.description = Preference related to how the editor proce
# Refresh Exclusion Contributors
RefreshExclusionContributor.name = Resources
-extension-point.name = Refresh Exclusion Contributor
\ No newline at end of file
+extension-point.name = Refresh Exclusion Contributor
diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml
index aa1b14bde18..5ccde09be0e 100644
--- a/core/org.eclipse.cdt.ui/plugin.xml
+++ b/core/org.eclipse.cdt.ui/plugin.xml
@@ -1127,10 +1127,10 @@
+ class="org.eclipse.cdt.internal.ui.preferences.CodeStylePreferencePage"
+ id="org.eclipse.cdt.ui.preferences.CodeStylePreferencePage">
@@ -1196,15 +1196,23 @@
+
+
+
+
@@ -1263,6 +1271,9 @@
+
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java
index 47d21d1bf17..c883bbb98ee 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java
@@ -85,6 +85,7 @@ public interface ICHelpContextIds {
public static final String APPEARANCE_PREFERENCE_PAGE = PREFIX + "appearance_preference_page_context"; //$NON-NLS-1$
public static final String SPELLING_CONFIGURATION_BLOCK= PREFIX + "spelling_configuration_block_context"; //$NON-NLS-1$
+ public static final String CODE_STYLE_PREFERENCE_PAGE = PREFIX + "code_style_preference_context"; //$NON-NLS-1$
public static final String CODE_TEMPLATES_PREFERENCE_PAGE = PREFIX + "code_templates_preference_context"; //$NON-NLS-1$
public static final String NAME_STYLE_PREFERENCE_PAGE = PREFIX + "name_style_preference_context"; //$NON-NLS-1$
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/AbstractConfigurationBlock.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/AbstractConfigurationBlock.java
index 8436fd1abd6..447a50882b5 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/AbstractConfigurationBlock.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/AbstractConfigurationBlock.java
@@ -7,10 +7,9 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
- * Sergey Prigogin, Google
+ * Sergey Prigogin (Google)
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
-
package org.eclipse.cdt.internal.ui.preferences;
import java.util.ArrayList;
@@ -53,7 +52,6 @@ import org.eclipse.cdt.internal.ui.dialogs.StatusUtil;
* @since 4.0
*/
abstract class AbstractConfigurationBlock implements IPreferenceConfigurationBlock {
-
/**
* Use as follows:
*
@@ -73,9 +71,9 @@ abstract class AbstractConfigurationBlock implements IPreferenceConfigurationBlo
protected final class SectionManager {
/** The preference setting for keeping no section open. */
private static final String __NONE= "__none"; //$NON-NLS-1$
- private Set fSections= new HashSet();
+ private final Set fSections= new HashSet();
private boolean fIsBeingManaged= false;
- private ExpansionAdapter fListener= new ExpansionAdapter() {
+ private final ExpansionAdapter fListener= new ExpansionAdapter() {
@Override
public void expansionStateChanged(ExpansionEvent e) {
ExpandableComposite source= (ExpandableComposite) e.getSource();
@@ -107,10 +105,12 @@ abstract class AbstractConfigurationBlock implements IPreferenceConfigurationBlo
}
}
};
+
private Composite fBody;
private final String fLastOpenKey;
private final IPreferenceStore fDialogSettingsStore;
- private ExpandableComposite fFirstChild= null;
+ private ExpandableComposite fFirstChild;
+
/**
* Creates a new section manager.
*/
@@ -203,13 +203,14 @@ abstract class AbstractConfigurationBlock implements IPreferenceConfigurationBlo
}
protected static final int INDENT= 20;
- private OverlayPreferenceStore fStore;
+ private final OverlayPreferenceStore fStore;
- private Map