Changes

Jump to: navigation, search

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

290 bytes added, 00:53, 9 March 2011
"Delete Student" Command
==== "Delete Student" Command ====
Add the "DeleteStudent" command to commands extension point for Delete and create the Handler Class.<br/>
<br/>
[[Image: RCPCommand17.jpg | 700px]]<br/>
<br/>
Add the command you just created to the menuContribution extension point.<br/>
[[Image: RCPCommand18.jpg | 700px]]<br/>
<br/>
Here is the code for the execute method of the DeleteStudent class. It finds the student(s) that user has selected on the table viewer to delete from the ModelProvider and then refreshes the viewer.
==== "Add Student" Command ====
1
edit

Navigation menu