Bug 399880 - [ClassDiagram / CDT] Papyrus shall enable to navigate easily from code to model
Summary: [ClassDiagram / CDT] Papyrus shall enable to navigate easily from code to model
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Designer (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: CDT
Keywords: plan
Depends on:
Blocks:
 
Reported: 2013-02-04 07:56 EST by Camille Letavernier CLA
Modified: 2017-09-08 11:34 EDT (History)
4 users (show)

See Also:
rschnekenburger: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2013-02-04 07:56:38 EST
The idea is to easily be able to, from the code, find and navigate to the model element corresponding/related to the code. An idea of how to solve this is to use some kind of annotation in the code that the editor can interpret and use to open the corresponding editor. Maybe using EMF cross document reference notation, e.g. href="model.uml#//@element.3" to easily fin the correct element.
Comment 1 Ansgar Radermacher CLA 2015-02-12 07:58:59 EST
The CDT Editor integration does not contain a selection support from model to code.

It used to contain a selection support from code to model, i.e. selecting an operation in the code selected the corresponding operation in the model explorer. This is currently disabled as it has caused deadlocks (there is a selection listener in the class PapyrusCDTEditor, but it is not added to the CDT widget). 

If you consider that this is an important issue, I may re-examine how to enable the selection from model to code and vice versa. The main problem of the latter is that the selection of an element in the model explorer changes the focus and we need to prevent model update and subsequent regeneration in this case.
Comment 2 Camille Letavernier CLA 2015-02-12 11:05:50 EST
I remove the target version/milestone until a new plan is decided