Command Parameter RCP (Eclipse RCP) Open MANIFEST.MF file and right click on the Command and select "commandParameter" from "New". After creating "commandParameter", enter the details, like "id", "name" and make optional as "false". After adding the parameter in the command, in View (or Editor) at the time of calling the command set the parameter. Refer the following code to set the parameter at the time of execution. Code in View (or Editor): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 ICommandService commandService = ( ICommandService ) getSite (). getService ( ICommandService . class ); IHandlerService handlerService = ( IHandlerService ) getSite (). getService ( IHandlerService . class ); // Enter the ID of the Command as the argument to getCommand() method in next line. Command sysoComm = commandService . getCommand ( "Re...
In this blog I'll demonstrate how to implement few very basic application functionalities in Eclipse RCP.