Changes

Jump to: navigation, search

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

186 bytes added, 13:34, 9 March 2011
3.4.2 Add a "double click" listener to the StudentsView class
====3.4 Open editor====
The way we want to interact with the editor is, whenever we double click on a field, the editor opens in its area.<br/>
We need to take two steps for this:<br/> =====3.4.1 Open editor command <br/>=====
We add a command to the <code>''commands''</code> extension as it is explained in [[Teams_Winter_2011/team1/RCP/Define_and_use_commands |part 2 ]] of this tutorial.<br/>
[[Image: rcp_editor4.png | 700px]]<br/>
}
</source>
=====3.4.2 Add a "double click" listener to the <code>StudentsView</code> class <br/>=====
For this, we need to add <code>''hookDoubleClick()''</code> method to the </code>StudentsView.java </code>. <br/>
<source lang=java>
}
</source>
 
 
<br/>
[[Teams_Winter_2011/team1| Index Page]] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Teams_Winter_2011/team1/RCP/Define_and_use_JFace| Next>>]]
1
edit

Navigation menu