Bug 399882 - [ModelExplorer] Papyrus shall enable navigation between typed model elements shown in views and the model explorer
Summary: [ModelExplorer] Papyrus shall enable navigation between typed model elements ...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M7   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: plan
Depends on: 402947 403202
Blocks: 402948 404919
  Show dependency tree
 
Reported: 2013-02-04 07:56 EST by Camille Letavernier CLA
Modified: 2013-04-04 12:09 EDT (History)
3 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:52 EST
This facility is about the possibility to select any kind of element within a view (diagram, table or text) and to be able to retrieve this latter in the model explorer. Today, this feature is partially supported by Papyrus for diagrams. It should be completed to be also available for at least for the table views and it should also to enable to support within diagram views the navigation to the type of typed element which are denoted as label such as for the property within class diagram or for ports within composite structure diagrams.
Comment 1 Camille Letavernier CLA 2013-03-11 13:16:52 EDT
Initial contribution in r10483-10484:

- New Service (NavigationService in oep.infra.services.navigation)
	- The service is used to retrieve all targets from a given object (e.g. "Navigate to Type" from a TypedElement)
- A contribution for navigating from UML::TypedElement to UML::Type
- A contribution for navigation from UML::Operation to UML::Type (From the operation's return type)
- The ModelExplorer uses this service on Ctrl + Click
	-> Usage: Hold CTRL and move your mouse on a TypedElement in the ModelExplorer (e.g. Operation, Property, ...)
	
TODO:

- Add Preferences to enable/disable some contributions
- The Diagrams should use this service
- The Tables should use this service
- Improve support for elements which have a Type but are not TypedElement (e.g. Operation)
Comment 2 Camille Letavernier CLA 2013-03-11 13:17:56 EDT
r10485:

The new plug-ins have been added to the build
Comment 3 Camille Letavernier CLA 2013-03-11 15:00:21 EDT
r10498:

The navigation feature is now associated with ALT + Click, as Ctrl + Click is already used for multi-selection in the ModelExplorer and the Diagrams.
Comment 4 Camille Letavernier CLA 2013-03-14 09:36:31 EDT
> - The Diagrams should use this service

Done (See bug 402947)

Todo: 

- The navigation service needs to be improved to allow a different navigation context (e.g. from the Diagram to the ModelExplorer, from the current Diagram to any diagram, from the ModelExplorer to the diagrams, ...)
Comment 5 Camille Letavernier CLA 2013-04-04 12:09:30 EDT
The core feature is implemented and integrated. Additional enhancements can be found in separate tasks, e.g.: 

Bug 404919: [Navigation Service] Improve the target of the Navigation Service
Bug 402948: [Tables - Navigation] The tables shall use the Navigation service

I close this task