Bug 501151 - [Designer][java][generator] in the code to model, take into account preloaded model
Summary: [Designer][java][generator] in the code to model, take into account preloaded...
Status: ASSIGNED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Designer (show other bugs)
Version: 1.0.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Shuai Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 500948
  Show dependency tree
 
Reported: 2016-09-09 10:02 EDT by Francois Le Fevre CLA
Modified: 2017-02-16 07:54 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Le Fevre CLA 2016-09-09 10:02:50 EDT
Given a java code
I would like to be able to create a basic initial model that import a shared java library.
when making the reverse java 2 model, I would like the generator take into account the preloaded model in order to map the shared element to my model of interest.
Comment 1 Shuai Li CLA 2016-09-09 10:10:52 EDT
Some additional info: given that my model is "Root", currently if I define search paths in the reverse UI, it will search in paths relative to "Root".

We should be able to search relative to another loaded model, e.g. "MyModelLibrary". I propose two possible solutions:

(1) We can choose the loaded model with how we define the search (e.g. "../MyModelLibrary/blabla" or "/MyModelLibrary/blabla")

(2) The UI gives some option to choose all loaded models to consider.

The advantage of the second option is that we choose a referenced model, therefore there's no problem with same name conflicts. But how to make the UI sufficiently easy to use without too many options?
Comment 2 Ansgar Radermacher CLA 2017-02-16 05:14:00 EST
Is the bug still valid?
Comment 3 Shuai Li CLA 2017-02-16 07:54:17 EST
Yes because we can't define a search path relative to a loaded model different from the current one.