Getting Started with Eclipse RCP Developer Study Notes - 01.Hello RCP

Recent eager to want to learn all aspects of the desktop client development, in addition to work is only beginning to learn a bit of time outside of Delphi, as well as U read a little bit of time VB, VC contacts, in this area can be called super do not quite understand .

Also today, just browse to http://www.blogjava.net/youxia/archive/2009/05/20/271647.html this article to learn the idea of an immediate initiation.

1. What's RCP?

Rich Client Platform acronym, that is, rich client platform. Eclipse, that is a perfect RCP product endorsement.

2. Follow the Eclipse Creating a Rich Client Application Wizard, and made reference to http://www.blogjava.net/youxia/archive/2006/11/17/81852.html started my first one RCP program - HelloRCP.

1) a new one plug-in items:

a) Click on the menu "File-> New-> Project ..." Select Plug-in Development -> Plug-in Project;

Rich Client Application needs of the next election yes (the election no what would happen?), Other use the default values, the following figure:

Getting Started with Eclipse RCP Developer Study Notes - 01.Hello RCP

Next, select the template "Hello RCP", and then Finish, plug-in project is to create better.

b) run the RCP Application:

Editing area that appears by default Overview interface, select one of Testing tab "Launch an Eclipse application", the following diagram:



Then appears to run results (1 only the title bar of the most simple desktop application), the following figure:



c) to point modifications:

Run window's title bar to remove the "Hello RCP" words: Open hellorcp.ApplicationWorkbenchWindowAdvisor this class, find a way to preWindowOpen (), comment out one of the configurer.setTitle ( "Hello RCP");

Again, "Launch an Eclipse application", run the following diagram results:



2) defines the product - to plug-in run:

a) create a configuration file: Click the menu "File-> New-> Product Configuration", enter the File name, in the "Initialize the file content", select the last Use a launch configuration, click Finish to complete the creation, the following diagram:



b) by default will open the file you just created HelloRCP.product editing window, the following diagram:



Perform the following steps: Enter Name, click New ... to open "New Product Configuration" using the default values click Finish to return editing interface, click the Testing tab of the Synchronize, and then click the Launch an Eclipse Application, run the program, throughout the present In addition to the title bar of the desktop effects to run outside with the previous non-discriminatory.

3) Personalized Products

a) increase the program icon: to continue to stay in front of the editing area (still in the editing of this document HelloRCP.product state), click the edit area below the "Branding" tab, the following diagram:



In turn click on "16x16 Image" and "32x32 Image" after the "Browse ...", respectively, select the appropriate picture, and then save the file back to Overview interface, click the Launch an Eclipse Application, can be seen running ahead of the title bar appears the picture, the following diagram:



b) the program starts to display pictures: still in front of the editor area (to open this file HelloRCP.product visual editing window), click the Edit area below the "Splash" tab, the following diagram:



Click on "Plug-in" after the "Browse ...", select the item and return to editing interface, save the file.

(Note: At this point is only activated when you load the image to start the function, the need for additional items to bmp image files into the root path and file name required for splash.bmp), to return to Overview click Launch an Eclipse Application, running program, the program starts when a defined image, the following diagram (the lovely "poor" image):



c) custom boot process: Switch to HelloRCP.product the Launching choice card, the following diagram:



In the "Program Launcher" to "Launcher Name" enter "HelloRCP", then select "Use a single ICO file containing 6 images", click "Browse ..." select icons under "alt_launcher.ico", preserved;

Re-run the program. (And before the running effect seems to be no distinction between the role of this step is yet to get to know)

4) Export Products: Double-click the project root under the build.properties file, open the Edit window, the following diagram:



"Binary Build" check under the "icons", "splash.bmp", preserved;

Switch or double-click HelloRCP.product this file and navigate to Overview editing interface, click on "Exporting" under the "Eclipse Product export wizard", appeared Export Wizard, the following diagram:



Followed by Edit "Configuration", "Root directory", "Destination" these items, then click "Finish", which will see later from the "Destination" will appear below the path specified in the structure of folders and files:



5) changes in product operation mode, will be run as plug-in is converted to feature by:

a) In the HelloRCP.product the Overview tab, "The product configuration is based on" Select "features", preserved;

b) Switch to the Configuration option HelloRCP.product card, click on "New Feature ..." open the editing window, the following diagram:



In the "Project name" enter "HelloRCP.feature", "Feature Name" enter "HelloRCP Feature", and then click "Next>", check "HelloRCP", and then click "Finish", the following diagram:



On the left list of items will increase a HelloRCP.feature projects, and by default will open the project's main editing interface, the following diagram:



c) Select "Information" tab, and turn in the "Feature Description" and "License Agreement" of the "Text" type the number of components, preservation;

d) return to the Configuration option HelloRCP.product card, click on "Add ...", then select "org.eclipse.rcp", preserved;

e) Export (in front of the process and is similar), after the export is successful "Destination" will appear below the path specified in the structure of folders and files:



HelloRCP this study is completed.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb
Tags:

Related Posts of Getting Started with Eclipse RCP Developer Study Notes - 01.Hello RCP

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries