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

Bug 319097

Summary: [ViewService] Drop element after opening the generated software is not possible
Product: [Modeling] GMF-Tooling Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: gmf.generation-inbox <gmf.generation-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: vincent.lorenzo
Version: 2.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 302555    

Description Vincent Lorenzo CLA 2010-07-07 05:49:31 EDT
We use GMF for the Papyrus Developpement,  and we have find a problem with the ViewService.
When we want to drop an element from the model explorer into the diagram, after opening own software, this action is not allowed.

To drawing the dropped element, we create a ViewDescriptor, with the parameter semanticHint to null. 
The view provider is not yet loaded, so the CreateCommand can't be executed.

If an element has already been created, before this action, we don't have the problem.

Currently, to correct the problem, we create a dummy ViewDescriptor, with a correct semanticHint, and a dummy Command, 
and we do dummyCommand.canExecute(); to force the launch of the view service.
After this action, we can always execute command with a semanticHint to null.
Comment 1 Eclipse Webmaster CLA 2010-07-19 22:18:08 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug