Bug 513309 - diagram variable should be made available in diagram begin operation
Summary: diagram variable should be made available in diagram begin operation
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.1.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 525257
  Show dependency tree
 
Reported: 2017-03-08 09:11 EST by Vincent Richard CLA
Modified: 2017-09-27 03:49 EDT (History)
3 users (show)

See Also:


Attachments
VSM and modeling project to import to reproduce the pb (6.97 KB, application/zip)
2017-03-08 10:54 EST, Cedric Brun CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Richard CLA 2017-03-08 09:11:20 EST
The only available variable at runtime in a begin operation of a diagram description is self, pointing to the semantic context of the diagram being created.

For the purpose of creating views at diagram creation time, it would be useful to make the diagram itself available in a variable.
Comment 1 Cedric Brun CLA 2017-03-08 10:54:20 EST
Created attachment 267171 [details]
VSM and modeling project to import to reproduce the pb

To reproduce the problem open the modeling project, right click on the EPackage and select "new 513309 auto init create view"

expected result: 
- the diagram is opened and there is a black node in it for the first EClass of the model

actual result:
- the nothing happens, the execution of the CreateView actually fails leading to a rollback of the representation creation.
Comment 2 Eclipse Genie CLA 2017-03-08 11:06:17 EST
New Gerrit change created: https://git.eclipse.org/r/92627