Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325683 - Link Assistants shows only note links for most of the elements
Summary: Link Assistants shows only note links for most of the elements
Status: CLOSED DUPLICATE of bug 351172
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Samples (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 13:22 EDT by Michael Golubev CLA
Modified: 2012-12-11 15:12 EST (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 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 ***