| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML> | |
| <HEAD> | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> | |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> | |
| <title>Setting up a component project</title> | |
| </head> | |
| <BODY BGCOLOR="#ffffff"> | |
| <h2>Setting up a feature project</h2> | |
| <p>Similar to plug-ins and fragments, PDE treats platform features as projects. | |
| PDE attaches a special "feature" capability to these projects to be | |
| able to run nature-specific builders. The project must have a feature manifest.</p> | |
| <p>PDE provides a wizard for setting up a feature project. Typically, you use | |
| this wizard to set up a feature once you are done developing plug-ins and | |
| fragments. However, you can create the feature at any stage of development and | |
| add new plug-ins later.</p> | |
| <h3>Example: Setting up a feature for plug-ins and fragments</h3> | |
| <p>Assuming that you have followed the previous examples, you should have "XYZ | |
| Plug-in" and "German Fragment" in your workspace already. We will | |
| create a sample feature and package these artifacts to be ready for delivery.</p> | |
| <ol> | |
| <li>Bring up the feature wizard (<b>New->Project->Plug-in | |
| Development->Feature | |
| Project</b>)</li> | |
| <li>Set the name of the project to "com.example.feature" and press <b>Next</b>.</li> | |
| <li>Set the feature name to "Sample Feature" and the feature version to "1.2.2". Set the provider to | |
| "Example".</li> | |
| <li>In the following page, check the plug-in (XYZ Plug-in) and the fragment | |
| (German Fragment). </li> | |
| <li>Press <b>Finish</b>.</li> | |
| </ol> | |
| <p>You should now have the "com.example.feature" project in your workspace. | |
| The project should have <br> | |
| "feature.xml" file and feature manifest editor will open for editing.</p> | |
| <p> <br> | |
| <a href="../hglegal2003.htm"> | |
| <img src = "../images/ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a> | |
| </p> | |
| </body> | |
| </html> |