Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team1/RCP/Define and use commands

109 bytes added, 23:33, 8 March 2011
Define and Use Commands
=== Define and Use Commands ===
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.<br/>
Here is what we will see after adding all the commands:<br/>
 
[[Image: RCPCommandRun.jpg |500px]]<br/>
<br/>
==== Add a Command (Print Students) to Your Project====
1
edit