| Summary: | [ElementTypes][UMLTypes] getCommandResult returns null | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Vincent Lorenzo <vincent.lorenzo> |
| Component: | Core | Assignee: | Project Inbox <mdt-papyrus-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | yann.tanguy |
| Version: | 0.8.0 | ||
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
The result is accessible in the request, but i should be interesting to get it from the result too. |
A code to reproduce the bug : IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); CreateElementRequest createRequest = new CreateElementRequest(context.getNearestPackage(), SysMLElementTypes.DERIVE_REQT); ICommand createGMFCommand = provider.getEditCommand(createRequest); CommandResult result = createGMFCommand.getCommandResult(); result is null : the command result has not been initialized during the command creation, so we can't use the result in the following command;