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

Bug 325683

Summary: Link Assistants shows only note links for most of the elements
Product: [Modeling] GMF-Tooling Reporter: Michael Golubev <borlander>
Component: SamplesAssignee: Michael Golubev <borlander>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mistria
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael Golubev CLA 2010-09-18 13:22:05 EDT
Steps to repeat: 
1. Open StateMachine diagram
2. Create StateMachine, StartState, EndState
3. Select StartState  and wait until link-assistants appears
4. Drag outgoing assistant and and release it somewhere 
=> 
popup suggesting to create the link to the new Note appears, 
there are no ways to create a link to a new inner-state or to existing EndState, also in the corresponding UMLModelingAssistantProvider there is some generated code to cover these use cases

Investigation shows that the problem is that in the generated modeling assistant provider registration in the plugin.xml the UMLModelingAssistantProvider is registered for only a few contexts, not inluding the InitialPseudostateEditPart: 

The same error may be reproduced for the very wide range of different nodes on all diagrams.
Comment 1 Michael Golubev CLA 2010-09-18 13:29:56 EDT
Here is the problem registration from StateD

<extension point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders" id="modelassist-provider">
  <?gmfgen generated="true"?>
  <modelingAssistantProvider class="org.eclipse.uml2.diagram.statemachine.providers.UMLModelingAssistantProvider">
    <Priority name="Lowest"/>
    <object class="org.eclipse.uml2.diagram.statemachine.edit.parts.PackageEditPart" id="Package_1000"/>
    <object class="org.eclipse.uml2.diagram.statemachine.edit.parts.StateMachineEditPart" id="StateMachine_2005"/>
    <context elements="Package_1000,StateMachine_2005"/>
  </modelingAssistantProvider>
</extension>
Comment 2 Mickael Istria CLA 2011-10-28 09:17:55 EDT

*** This bug has been marked as a duplicate of bug 351172 ***