Difference between revisions of "Teams Winter 2011/team1/RCP/Create RPC Application"

From CDOT Wiki
Jump to: navigation, search
(Create a RCP Application)
(Start The Application)
Line 5: Line 5:
 
To begin with, we create a simple RCP from the "Hello World" RCP template. The will add our Model classes. Eventually we use perspective, view, Jface viewe and Commands, to display, edit, Add and Delete students' records.<br/>
 
To begin with, we create a simple RCP from the "Hello World" RCP template. The will add our Model classes. Eventually we use perspective, view, Jface viewe and Commands, to display, edit, Add and Delete students' records.<br/>
 
==== Start The Application ====
 
==== Start The Application ====
Create an new plug-in project from File menu (File>New>Project>Plug-in Development> Plug-in project).<br/>
+
Create a new plug-in project from File menu (File>New>Project>Plug-in Development> Plug-in project).<br/>
 
[[Image: createRCPApp1.jpg | 400px]]<br/>
 
[[Image: createRCPApp1.jpg | 400px]]<br/>
 
<br/>
 
<br/>

Revision as of 16:42, 8 March 2011

Create a RCP Application

This tutorial uses the ... Tutorial as reference.
In this tutorial we are going to demonstrate how to build a simple RCP application to maintain student's information. We keep the data in a List object and will not preserve data.

To begin with, we create a simple RCP from the "Hello World" RCP template. The will add our Model classes. Eventually we use perspective, view, Jface viewe and Commands, to display, edit, Add and Delete students' records.

Start The Application

Create a new plug-in project from File menu (File>New>Project>Plug-in Development> Plug-in project).
CreateRCPApp1.jpg

Name it: "cs.ecl.rcp.SimpleRCP"
CreateRCPApp2.jpg

Select "Yes" in responce to the question:" Would you like to create a rich client application?"
CreateRCPApp3.jpg

Select the "Hello RCP" in the Templates screen.
CreateRCPApp4.jpg

Un-check "Add branding".
CreateRCPApp5.jpg

The "RCP" project is created with some classes already in it. We will modify this project to create our RCP application for the purpose if this tutorial.
CreateRCPApp6.jpg

Run The Application

To run the application, right click on the project and select :Run As> Eclipse Application. Alternatively, you can click on the "Run an Eclipse Application" In the "Testing section of the project Overview window. RCPRun1.jpg

At this point, the application starts and looks like this:
RCPRun2.jpg

Add Model

Create Model Package

Add Model Class(s)

Add Model Provider