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:

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

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

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

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:

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

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:

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

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

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

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:

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

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:

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

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:

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

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):

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

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

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

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:

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

"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:

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

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:

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

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:

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

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:

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

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:

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

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:

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

HelloRCP this study is completed.

分类:Java 时间:2010-03-29 人气:520
本文关键词:
分享到:
blog comments powered by Disqus

相关文章

  • Getting Started with Eclipse RCP Developer Study Notes - 05.2D Drawing 2010-04-15

    -------------------------------------------------- -------------------------------------------------- Study: http://www.blogjava.net/youxia/archive/2006/12/01/84855.html -------------------------------------------------- -----------------------------

  • Getting Started with Eclipse RCP Developer Study Notes - 06.OpenGL 2010-04-16

    -------------------------------------------------- ------------------------------------------------- Study: http://www.blogjava.net/youxia/archive/2006/12/09/86513.html -------------------------------------------------- ------------------------------

  • Getting Started with Eclipse RCP development study notes - 03. View 2010-04-13

    -------------------------------------------------- ---------------------------------------------- Study: http://www.blogjava.net/youxia/archive/2006/11/24/83377.html -------------------------------------------------- ---------------------------------

  • Getting Started with Eclipse RCP development study notes - 02. Menus and dialog boxes 2010-04-09

    -------------------------------------------------- -------------------------------------------- Study: http://www.blogjava.net/youxia/archive/2006/11/20/82388.html -------------------------------------------------- -----------------------------------

  • Getting Started with Eclipse RCP development study notes - 04. In Windows, use the Active X control 2010-04-14

    -------------------------------------------------- ------------------------------------------------- Study: http://www.blogjava.net/youxia/archive/2006/11/28/84013.html -------------------------------------------------- ------------------------------

  • Getting Started with Eclipse RCP development study notes - 07. Summary 2010-04-16

    Follow the "Seaside Momo" series of articles had started studying the development of the RCP has been a general understanding of the increasing interest in this area, of course, if you really want to develop a practical small Dongdong years, Lea

  • Introduction to SWT Development Study Notes - 01.Hello SWT 2010-06-19

    SWT to create a typical application requires the following steps: 1. Creating a Display Object 2. Create one or more Shell object 3. Set the layout Shell 4. Creating the Component Shell 5. With open () method to open Shell Form 6. Write an event forw

  • XPlanner Study Notes - 01.Ready 2010-05-02

    1. What's XPlanner? XPlanner a Web-based planning and tracking tool for XP teams. XP's unique development concepts such as iteration, user stories, etc., XPlanner have provided the corresponding management tools, XPlanner support XP development proce

  • Oracle PL / SQL study notes 01 2010-05-05

    Chapter PL / SQL Introduction 1. Why use PL / SQL PL / SQL and SQL combined with tight, both use the same data type. PL / SQL to use less code and have the speed of execution PL / SQL simplifying application logic to the database layer of the transfe

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.094 (s). 12 q(s)