Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319097 - [ViewService] Drop element after opening the generated software is not possible
Summary: [ViewService] Drop element after opening the generated software is not possible
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gmf.generation-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 302555
  Show dependency tree
 
Reported: 2010-07-07 05:49 EDT by Vincent Lorenzo CLA
Modified: 2010-08-30 12:03 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 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