ICommandService service = (ICommandService) serviceLocator.getService(ICommandService.class); Command command = service.getCommand(commandId); ParameterizedCommand parameterizedCommand = new ParameterizedCommand(command, null); job.setProperty(IProgressConstants.COMMAND_PROPERTY, parameterizedCommand);
You have to specify either the ACTION_PROPERTY or COMMAND_PROPERTY, but not both. If you specify both, neither of them will get executed.
Note: You need a 3.6 M3 or a latest I-Build for this to work.
2 comments: