Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354941 - [model explorer] diagram navigation from model explorer is not possible
Summary: [model explorer] diagram navigation from model explorer is not possible
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mathieu Velten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 07:59 EDT by Raphael Faudou CLA
Modified: 2014-03-13 08:45 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Faudou CLA 2011-08-17 07:59:25 EDT
From model explorer we would like to be able to navigate to diagrams in the same way as it is now possible from model elements in a diagram editors : through hyperlinks or through implicit navigation.
As the mechanism exists, the only thing to do is to plug it to the model explorer view so that we can have the same behavior on "double click":
* if there are several diagrams including the current selected element, a list of diagrams is displayed
* if there is only one diagram showing the current selected element, the diagram is open
* if there is no diagram showing the current selected element, a dialog box opens to tell the user that there is no diagram with this element.
Comment 1 Vincent Hémery CLA 2011-09-13 08:06:45 EDT
Branching this mecanism on the double-click is a very bad idea.
Since double-clicking is already used for expanding / folding a node, branching diagram navigation on it would not only cause conflicts, but also differ from usual treeview behavior, which may disturb users.

It would be possible to plug it on a right-click action, but I'm not sure this would be very usefull (at least for implicit navigation) :
- for creating a structural or behavioral diagram : the diagram creation action is already available on right-click. We gain only time to reach the sub-menu (hovering menu), but have redundancy in the actions menu.
- for opening structural diagram : this would allow us to execute a right-click action instead of expanding a node and double-clicking on the contained diagram. We gain half a double-click when there is only one diagram (if node is not already expanded), and we lose time (~2 clicks) when there is more than one diagram.
- for opening a behavioral diagram : same as structural diagram, except we have one extra expand to perform without the action. Hence, we sometime gain 1 click (if node is not already expanded), and sometime lose 1 when there are several diagrams. Moreover, I find the list of diagrams less understandable than the treeview itself.


I can not see the point of branching the implicit navigation on the model explorer view, since this view already displays this information in a tree structure.

On the other hand, providing a "hyperlinks" right click menu, with created hyperlinks (including implicit navigation diagrams) as sub-menus may make sense.
Comment 2 Toni Siljamäki CLA 2013-10-09 05:08:23 EDT
The "Link with Editor" does not work when clicking on an element in
Model Explorer to zoom in on it in a diagram.
Comment 3 Camille Letavernier CLA 2014-03-13 08:45:20 EDT
The "Dynamic hyperlinks" mechanism is supported in the Model Explorer (Alt + Hover). This includes navigation to nested diagrams. "Static hyperlinks" (As they are currently available in diagrams) will not be supported.

> The "Link with Editor" does not work when clicking on an element in
> Model Explorer to zoom in on it in a diagram.

This works in the current version

I close this task