Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 402662

Summary: [Editor - Services] Papyrus shall provide a Service to open page(s) associated to an Element
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.10.0   
Target Milestone: M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 399856    

Description Camille Letavernier CLA 2013-03-07 10:24:23 EST
Papyrus shall provide a Service to open the page(s) associated to an element.

- The element may be either a View element (e.g. GMF View, Table element, ...), or a Semantic Element
- The service must open the page(s) associated to this element, and reveal the element inside the page. This requirement needs to be refined.
- If the editor is currently closed, the service must be able to open a new editor (with the right page(s) and selection)
Comment 1 Camille Letavernier CLA 2013-03-07 10:25:58 EST
Initial contribution in r10424
Comment 2 Camille Letavernier CLA 2013-03-20 06:33:41 EDT
r10617:

The API has been specified, and an initial implementation for each method has been provided.
Comment 3 Camille Letavernier CLA 2013-04-12 07:16:09 EDT
r10852:

The IRevealSemanticElement has been improved for GMF Diagrams. They are now able to handle GMF Views. The selected element is also now correctly displayed (If it is not visible, the diagram is scrolled to make it visible)
Comment 4 Camille Letavernier CLA 2013-04-12 12:06:31 EDT
I close this task. Further improvements can be brought on the following:

- Improve algorithm for various IRevealSemanticElement implementations (Especially for the Tables)
- Fix bug 403913

But they are out of the scope of this task
Comment 5 Camille Letavernier CLA 2013-05-28 11:52:29 EDT
r11231:

The OpenElementService implementation now relies on the NavigationService to select and reveal elements, in the Diagrams and the ModelExplorer.