Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351795

Summary: [ElementTypes][UMLTypes] getCommandResult returns null
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: 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:

Description Vincent Lorenzo CLA 2011-07-12 02:59:27 EDT
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;
Comment 1 Vincent Lorenzo CLA 2013-03-13 10:19:39 EDT
The result is accessible in the request, but i should be interesting to get it from the result too.