|
1 <?xml version="1.0" encoding="UTF-8"?><!-- |
|
2 Copyright (c) 2005, 2009 IBM Corporation and others. |
|
3 All rights reserved. This program and the accompanying materials |
|
4 are made available under the terms of the Eclipse Public License v1.0 |
|
5 which accompanies this distribution, and is available at |
|
6 http://www.eclipse.org/legal/epl-v10.html |
|
7 |
|
8 Contributors: |
|
9 IBM Corporation - initial API and implementation |
|
10 --> |
|
11 |
|
12 <cheatsheet title="Create a plug-in"> |
|
13 <intro href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm"> |
|
14 <description> |
|
15 This cheat sheet will demonstrate how to configure PDE and use it |
|
16 to create, modify and test a plug-in. |
|
17 <br/> |
|
18 <br/> |
|
19 To learn more about using cheat sheets, click the help button |
|
20 in the top right corner (?). |
|
21 </description> |
|
22 </intro> |
|
23 <item title="Configure PDE" dialog="true" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/views/views.htm"> |
|
24 <description> |
|
25 To configure PDE, perform the following steps |
|
26 </description> |
|
27 <subitem label="Select "Window->Open Perspective->Other..." from the main menu and choose "Plug-in Development" in order to open the plug-in development perspective" skip="false"> |
|
28 <command |
|
29 confirm="false" |
|
30 required="false" |
|
31 translate="" |
|
32 serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.pde.ui.PDEPerspective)"> |
|
33 </command> |
|
34 </subitem> |
|
35 <subitem label="Select "Window->Preferences" from the main menu, expand the "Plug-in Development" outline tree node within the resulting dialog, and choose "Target Platform"." skip="false"> |
|
36 <command |
|
37 confirm="false" |
|
38 required="false" |
|
39 translate="" |
|
40 serialization="org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.pde.ui.TargetPlatformPreferencePage)"> |
|
41 </command> |
|
42 </subitem> |
|
43 <subitem label="Verify that the "Target Definitions:" check box list has one Target Platform selected as active." skip="true"> |
|
44 </subitem> |
|
45 <subitem label="Select the Active Target Platform, Click Edit and verify that all checkboxes corresponding to plug-in entries listed in the list box on the "Content" tab are checked." skip="true"> |
|
46 </subitem> |
|
47 <subitem label="Click "OK"." skip="false"> |
|
48 </subitem> |
|
49 </item> |
|
50 <item title="Create the plug-in" dialog="true" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/project_wizards/new_plugin_project.htm"> |
|
51 <description> |
|
52 To create the plug-in perform the following steps |
|
53 </description> |
|
54 <subitem label="Select "File->New->Project..." from the main menu, expand the "Plug-in Development" category within the resulting "New Project" dialog box, and choose "Plug-in Project"" skip="false"> |
|
55 <command |
|
56 confirm="false" |
|
57 required="false" |
|
58 translate="" |
|
59 serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.pde.ui.NewProjectWizard)"> |
|
60 </command> |
|
61 </subitem> |
|
62 <subitem label="Input "com.example.helloworld" into the "Project Name" text box" skip="false"> |
|
63 </subitem> |
|
64 <subitem label="Accept the rest of the default preloaded values on the "Plug-in Project" page and click "Next >"" skip="false"> |
|
65 </subitem> |
|
66 <subitem label="Accept the default preloaded values on the "Plug-in Content" page and click "Next >"" skip="false"> |
|
67 </subitem> |
|
68 <subitem label="Select the "Hello, World" template from the list of "Available Templates" and click "Finish"" skip="false"> |
|
69 </subitem> |
|
70 </item> |
|
71 <item title="Modify the plug-in" dialog="false" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/editors/manifest_editor/extensions.htm"> |
|
72 <description> |
|
73 After the new plug-in project wizard is finished from the previous step, |
|
74 the plug-in editor is launched for your new project with the <b>Overview</b> |
|
75 page showing. |
|
76 <br/> |
|
77 <br/> |
|
78 To modify your <b>com.example.helloworld</b> plug-in, perform the |
|
79 following steps: |
|
80 </description> |
|
81 <subitem label="Select the "Extensions" tab" skip="false"> |
|
82 </subitem> |
|
83 <subitem label="Expand the "org.eclipse.ui.actionSets" tree dialog under the "All Extensions" heading" skip="false"> |
|
84 </subitem> |
|
85 <subitem label="Expand the "Sample Action Set" tree dialog" skip="false"> |
|
86 </subitem> |
|
87 <subitem label="Select the "Sample Menu" entry" skip="false"> |
|
88 </subitem> |
|
89 <subitem label="Replace the content of the "label" text box under the "Extension Element Details" heading with "Hello!"" skip="false"> |
|
90 </subitem> |
|
91 <subitem label="Select the "Sample Action" entry under the "All Extensions" heading" skip="false"> |
|
92 </subitem> |
|
93 <subitem label="Replace the content of the "label" text box under the "Extension Element Details" heading with "Display Hello World!"" skip="false"> |
|
94 </subitem> |
|
95 <subitem label="Select "File->Save" from the main menu" skip="false"> |
|
96 </subitem> |
|
97 </item> |
|
98 <item title="Test the plug-in" dialog="false" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/launchers/eclipse_application_launcher.htm"> |
|
99 <description> |
|
100 To test your Eclipse plug-in inside a target Eclipse platform, |
|
101 perform the following steps: |
|
102 </description> |
|
103 <subitem label="Select the "Overview" tab" skip="false"> |
|
104 <command |
|
105 confirm="false" |
|
106 required="false" |
|
107 translate="" |
|
108 serialization="org.eclipse.ui.navigate.openResource(filePath=/com.example.helloworld/META-INF/MANIFEST.MF)"> |
|
109 </command> |
|
110 </subitem> |
|
111 <subitem label="Click the "Launch an Eclipse application" hyperlink under the "Testing" heading" skip="false"> |
|
112 </subitem> |
|
113 <subitem label="Note the "Hello!" entry in the main menu in the newly launched Eclipse platform" skip="true"> |
|
114 </subitem> |
|
115 <subitem label="Select "Hello!->Display Hello World!" from the main menu" skip="false"> |
|
116 </subitem> |
|
117 <subitem label="Click on the "Workbench" icon to close the "Welcome" view and go to the Eclipse workbench." skip="true"> |
|
118 </subitem> |
|
119 <subitem label="Note the icon with the Eclipse logo in the main toolbar in the newly launched Eclipse platform" skip="true"> |
|
120 </subitem> |
|
121 <subitem label="Click the icon with the Eclipse logo in the main toolbar" skip="false"> |
|
122 </subitem> |
|
123 <subitem label="Select "File->Exit" from the main menu to exit the target Eclipse platform" skip="false"> |
|
124 </subitem> |
|
125 </item> |
|
126 </cheatsheet> |