2
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2 |
|
|
3 |
<html>
|
|
4 |
<head>
|
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
6 |
<title>Adding items to the Carbide menu</title>
|
|
7 |
<style>
|
|
8 |
<!--
|
|
9 |
span.attr
|
|
10 |
{color:green}
|
|
11 |
-->
|
|
12 |
</style>
|
|
13 |
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
|
|
14 |
<style type="text/css">
|
|
15 |
<!--
|
|
16 |
.style3 {color: #006600}
|
|
17 |
.style5 {font-family: "Courier New", Courier, mono}
|
|
18 |
-->
|
|
19 |
</style>
|
|
20 |
</head>
|
|
21 |
|
|
22 |
<body>
|
|
23 |
<h2>Adding global preferences to the Carbide Extensions group</h2>
|
|
24 |
|
|
25 |
<p>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<strong> Carbide Extensions</strong> group.
|
|
26 |
</p>
|
|
27 |
<p>Following this guideline reduces the likelihood of preference page clutter for uses with multiple Carbide extension plug-ins.
|
|
28 |
It also provides users with a consistent place to look for Carbide.c++ global preferences.
|
|
29 |
</p>
|
|
30 |
<p>The<strong> Carbide Extensions</strong> group is defined in the <span class="style5">com.nokia.carbide.cpp plugin.xml</span> and such:
|
|
31 |
</p>
|
|
32 |
|
|
33 |
<pre class="listing"> <extension<br> point="<span class="style3">org.eclipse.ui.preferencePages</span>"><br> <page<br> name="<span class="style3">Carbide Extensions</span>"<br> class="<span class="style3">com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage</span>"<br> id="<span class="style3">com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage</span>"/> <br> </extension></pre>
|
|
34 |
|
|
35 |
<p>Now your plug-in just needs to define the <span class="style5">category</span> where your new preference page is to reside. Take for example, the <span class="style5">leavescan</span> plug-in preferences:</p>
|
|
36 |
<pre class="listing"> <extension<br> point="<span class="style3">org.eclipse.ui.preferencePages</span>"><br> <page<br> name="<span class="style3">Leavescan Preferences</span>"<br> class="<span class="style3">com.nokia.carbide.cpp.leavescan.ui.LeavescanPreferences</span>"<br> category="<span class="style3">com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage</span>"<br> id="<span class="style3">com.nokia.carbide.cpp.leavescan.ui.LeavescanPreferences</span>"><br> </page><br> </extension></pre>
|
|
37 |
<div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
|
|
38 |
</div></body>
|
|
39 |
</html> |