Community
Participate
Working Groups
As described in Eclipse 4 forum http://www.eclipse.org/forums/index.php/mv/tree/648658/ If I want to define a command with parameter and converter (AbstractParameterValueConverter) I have to define the extension point org.eclipse.ui.commands. In the model editor I have only the possibility to define the TypeId but not the converter. For a pure Eclipse 4 application it's not a way to define the extension point because org.eclipse.ui... needs the compytibility layer.
Hi, it's possible to define a ParameterType programmatically like so: final Command command = this.commandService.getCommand(ENABLE); final IParameter parameter = command.getParameter(ENABLE_PARAMETER); final ParameterType parameterType = command.getParameterType(ENABLE_PARAMETER); if (parameterType != null) { parameterType.define(java.lang.Boolean.class.getCanonicalName(), new BooleanParameterValueConverter()); } However, that is only possible if the TypeID has been set for the parameter. Instead of TypeID, which is no longer used, I'd prefer a class URI pointing to an implementation of org.eclipse.core.commands.AbstractParameterValueConverter. What do you think?
Without extention point in pure e4 application i can create parametrized command with object and execute it with help of AbstractParameterValueConverter Reference : https://github.com/kirillzotkin/DomainWorkbench
Sorry that was not complete e4 approach, here u can have a look. http://wp.me/p7dtOH-24.