## Adding global preferences to the Carbide Extensions group

If you are creating a plug-in specifically for use with Carbide.c++ and it requires a global preferences page, we recommend that you add your preference page(s) under the Carbide Extensions group.

Following this guideline reduces the likelihood of preference page clutter for uses with multiple Carbide extension plug-ins. It also provides users with a consistent place to look for Carbide.c++ global preferences.

The Carbide Extensions group is defined in the com.nokia.carbide.cpp plugin.xml and such:

    	<extension
             point="org.eclipse.ui.preferencePages">
          <page
               name="Carbide Extensions"
               class="com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage"
               id="com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage"/>
      </extension>

Now your plug-in just needs to define the category where your new preference page is to reside. Take for example, the leavescan plug-in preferences:

    	<extension
             point="org.eclipse.ui.preferencePages">
          <page
                name="Leavescan Preferences"
                class="com.nokia.carbide.cpp.leavescan.ui.LeavescanPreferences"
                category="com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage"
                id="com.nokia.carbide.cpp.leavescan.ui.LeavescanPreferences">
          </page>
     </extension>