Changes

Jump to: navigation, search

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

860 bytes added, 01:03, 9 March 2011
"Add Student" Command
==== "Add Student" Command ====
For implementing the "AddStudent" command, we are highly depended on the use of Editor view, so after adding the command Handler class and add the command to the menuContribution extension point, we will leave this part of tutorial and will come back to it for the implementation of the execute method in the handler class. However this will not be the only code, related to the AddStudent command. The reason is, we are going to use the editor view to create a new student. So basically, when user clicks on the "Add Student" on the top bar, the editor view will open up and enables user to enter the information for a new student and there will be a "Save" button to save the student, Then the table viewer will show the updated data.<b/>
 
Here is whet user can see by clicking on the "Add Student" button:<br/>
[[Image: RCPCommandAddRun.jpg | 400px]]<br/>
<br/>
[[Image: RCPCommand13.jpg | 400px]]<br/>
[[Image: RCPCommand16.jpg | 400px]]<br/>
<br/>
 
==== "Exit" Command ====
Now we will add the Exit command to our menuContribution Extension point.<br/>
1
edit

Navigation menu