Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351795 - [ElementTypes][UMLTypes] getCommandResult returns null
Summary: [ElementTypes][UMLTypes] getCommandResult returns null
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 02:59 EDT by Vincent Lorenzo CLA
Modified: 2017-09-08 09:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.