Open main menu

CDOT Wiki β

Changes

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

No change in size, 22:31, 8 March 2011
Use The Command in The Menu
<br/>
Then right click on the added extension point and choose New > menuContribution.<br/>
[[Image: RCPCommand9.jpg | 500px700px]]<br/>
<br/>
In the menueContribution's Extension Element Details section set the locationURI to :"menu:org.eclipse.ui.main.menu" (make sure it is typed correctly).<br/>
[[Image: RCPCommand10.jpg | 500px700px]]<br/>
<br/>
Then right click on the "menuContibution" in All Extensions section and select New > command.<br/>
[[Image: RCPCommand11.jpg | 500px700px]]<br/>
<br/>
Now we will add our Print command info to the Extension Element Details of the command we just added. We can give it any lable, but the commandID must be the same as our Print Command.<br/>
[[Image: RCPCommand12.jpg | 500px700px]]<br/>
=== Add Other Necessary Commands to The Application ===
1
edit