- 23
- 0
- 约1.09万字
- 约 5页
- 2017-07-09 发布于河南
- 举报
RCP项目建立流程
Create a rich client application
Create a plug-in
Define a plug-in based product
Customize a product
Export an RCP product
Define a feature-based product
Create a plug-in
0, Introduction
This cheat sheet will demonstrate how to create and run an RCP application using PDE.
1, Open the plug-in development perspective
To open the plug-in development perspective, select Window-Open Perspective-Other... and choose Plug-in Development.
2, Create the plug-in
To create the plug-in, perform the following steps:
2.1 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
2.2 Input com.example.rcpapp into the Project Name text box on the Plug-in Project page and click Next
2.3 Select the Yes radio button under the Rich Client Application heading on the Plug-in Content page and click Next
2.4 Select the Hello RCP template from the list of Available Templates and click Finish
3, Run the RCP application
To run the RCP application, perform the following steps:
3.1 Select the com.example.rcpapp plug-in editor from the workbench and select the Overview tab within it
3.2 Click the Launch an Eclipse application hyperlink under the Testing heading
3.3 Verify that you see an empty window with a window title of Hello RCP
3.4 Exit the RCP application
4, Modify the plug-in source
In this step, we want to suppress the Hello RCP text in the window title bar of our RCP application.
To modify the plug-in source accordingly, perform the following steps:
4.1 Open ApplicationWorkbenchWindowAdvisor.java by locating it in the src folder of the com.example.rcpapp package in the Package Explorer view and double-clicking it
4.2 Comment out configurer.setTitle(Hello RCP); in the preWindowOpen() method
4.3 Select File-Save from the main menu
5, Test the RCP application
To test the RCP application, perform the following steps:
5.1 Select the com.example.rcpapp plug-in editor from t
原创力文档

文档评论(0)