Community
Participate
Working Groups
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.
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug