Difference between revisions of "Teams Winter 2011/team1/RCP/Define and use commands"

From CDOT Wiki
Jump to: navigation, search
(Define And Use Commands)
(Add a Command (Print Students) to Your Project)
Line 1: Line 1:
 
=== Define And Use Commands ===
 
=== Define And Use Commands ===
 
==== Add a Command (Print Students) to Your Project====
 
==== Add a Command (Print Students) to Your Project====
In order to be able to take advantages of user invoked operations and menus in the RCP application we create Commands and add them to menus. For this purpose we will demonstrate here how to create a "Print Students" command, which prints the student's info in the console and then add that command to the top bar menu. Then later, we demonstrate how to implement other commands like "Add Student", "Delete Student" and "Exit" to the top bar.
+
 
  
 
[[Image: RCPCommand1.jpg | 400px]]<br/>
 
[[Image: RCPCommand1.jpg | 400px]]<br/>
Line 35: Line 35:
 
[[Image: RCPCommand16.jpg | 400px]]<br/>
 
[[Image: RCPCommand16.jpg | 400px]]<br/>
 
<br/>
 
<br/>
 
 
  
 
==== Implement The Command Handler ====
 
==== Implement The Command Handler ====

Revision as of 18:23, 8 March 2011

Define And Use Commands

Add a Command (Print Students) to Your Project

RCPCommand1.jpg

RCPCommand2.jpg

RCPCommand3.jpg

RCPCommand4.jpg

RCPCommand5.jpg

RCPCommand6.jpg

400px

RCPCommand8.jpg

RCPCommand9.jpg

RCPCommand10.jpg

RCPCommand11.jpg

RCPCommand12.jpg

RCPCommand13.jpg

RCPCommand14.jpg

RCPCommand15.jpg

RCPCommand16.jpg

Implement The Command Handler

Use The Command in The Menu

Add Other Necessary Commands to The Application

"Exit" Command

"Delete Student" Command

"Add Student" Command

Define Views in The Application

Create Views

Add view(s) to perspective via code

Run your app with view(s)