diff --git a/core/org.eclipse.cdt.ui/plugin.properties b/core/org.eclipse.cdt.ui/plugin.properties index 71a9341e652..ad43e1f9bd7 100644 --- a/core/org.eclipse.cdt.ui/plugin.properties +++ b/core/org.eclipse.cdt.ui/plugin.properties @@ -592,4 +592,9 @@ ActionDefinition.selectPrevious.description = Expand the selection to enclosing ActionDefinition.selectPrevious.name = Select Previous C/C++ Element ActionDefinition.selectLast.description = Restore last selection in C/C++ editor ActionDefinition.selectLast.name = Restore Last C/C++ Selection -overrideAnnotation.label = C/C++ Override indicators \ No newline at end of file +overrideAnnotation.label = C/C++ Override indicators + +transfer.EditorAppearance.name = C/C++ Editor Appearance +transfer.EditorAppearance.description = Preference related to how the editor presents the edited code to the user (including colors, fonts, hovers, foldings, etc...) +transfer.EditorBehavior.name = C/C++ Editor Behavior +transfer.EditorBehavior.description = Preference related to how the editor process the edited code (typing, save action, etc...) diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml index c30c108d493..8382e186c8d 100644 --- a/core/org.eclipse.cdt.ui/plugin.xml +++ b/core/org.eclipse.cdt.ui/plugin.xml @@ -3832,4 +3832,107 @@ label="%BuildConsole.name"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %transfer.EditorAppearance.description + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %transfer.EditorBehavior.description + + + + + diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java index b1ad0c3bf24..d9b15e0333e 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java @@ -42,6 +42,15 @@ import org.eclipse.cdt.internal.ui.text.spelling.SpellCheckEngine; * CDT-UI preference store using these values. Clients are not allowed to modify the * preference store programmatically. * + * The preferences defined in this file are exported in the plugin's + * "preferenceTransfer" extension. If adding a new preference please + * also add it to one of the two if applicable: + *
    + *
  1. "Editor Appearance" - Any preference related to how the editor presents + * the edited code to the user.
  2. + *
  3. "Editor Behavior" - Any preference related to how the editor process the + * edited code.
  4. + *
* @noextend This class is not intended to be subclassed by clients. * @noinstantiate This class is not intended to be instantiated by clients. * @since 2.0