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

Bug 382430

Summary: Wizard for selecting/assigning existing model elements shows no model elements.
Product: [Modeling] Papyrus Reporter: Simon Schwichtenberg <simon.schwichtenberg>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screenshot of the steps to reproduce none

Description Simon Schwichtenberg CLA 2012-06-12 15:43:48 EDT
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857

I want to create a ProtocolStateMachine resp. assign a Operation to the Transition of a StateMachine.
I've also tried to assign a Operation to a Transition of a StateMachine, but I ran into the same problem!

Reproducible: Always

Steps to Reproduce:
1) create papyrus project
2) choose UML
3) check class diagram
4) create interface
5) create operation for interface
6) right click interface in model explorer
7) click new child > ProtocolStateMachine from context menu (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=358695)
8) right click ProtocolStateMachine in model explorer
9) click new diagram > new StateMachine Diagram from context menu
10) create two states and one transition
11) select transition
12) in properties view add a new trigger (plus sign)
13) in appearing popup window, add a new event (plus sign)
14) from context menu, select ReceiveOperationEvent
15) in appearing popup window, browse the elements to select a container
16) select root model element
17) in appearing popup window, browse the elements to select an operation
18) in appearing popup window, browse the elements to select an existing element
19) in appearing popup window, there are no items available

workaround:
20) in model explorer, select the event the was created before
21) in properties view, select the "advanced tab"
22) as operation feature, select the operation from the model
then, an additional label with the name of the operation appears in the diagram, that is attached to the transition.
When I select the transition in the diagram again, then edit the trigger from the "UML tab" of the properties view, then edit the event, the assigned operation appears in the corresponding field. But the list for selecting existing operations is still empty (18).
Comment 1 Simon Schwichtenberg CLA 2012-06-12 15:45:21 EDT
Created attachment 217235 [details]
Screenshot of the steps to reproduce
Comment 2 Camille Letavernier CLA 2013-03-08 12:26:36 EST
Related to:

402525: [Widgets / Transactions] Papyrus dialogs should be transactional
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402525

At some point, when too many creation dialogs are opened on top of each other, the context is lost, making it impossible to retrieve existing elements. You have to validate the creation of the elements, to attach them to the model, then edit them again.

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