Open main menu

CDOT Wiki β

Changes

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

334 bytes added, 21:35, 8 March 2011
Implement The Command Handler
[[Image: RCPCommand6.jpg | 700px]]<br/>
<br/>
Modify the "execute" method with the following code:<br/> <code>PrintHandler.java </code> <source lang=java>@Override public Object execute(ExecutionEvent event) throws ExecutionException { List<Student> studentList = ModelProvider.INSTANCE.getStudents(); for (Student s : studentList) { System.out.println(s); } return null; }</source>
<br/>
[[Image: RCPCommand8.jpg | 500px]]<br/>
<br/>
1
edit