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

Bug 329045

Summary: [Java] Allow navigating from model element to the Java editor
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: hugo.bruneliere, modisco.web-inbox, nicolas.guyomar
Version: 0.9.0Flags: fabien.giquel: indigo+
Target Milestone: 0.9.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 329038, 329040    
Bug Blocks:    
Attachments:
Description Flags
org.eclipse.modisco.java.composition.ui
none
org.eclipse.modisco.java.composition.ui new project for model->code navigation fabien.giquel: iplog+

Description Fabien Giquel CLA 2010-10-29 08:23:37 EDT
Here is an entry for a planned MoDisco enhancement : allow navigating from model element to the Java editor (both from Model browser and model element in project explorer).
Comment 1 Nicolas Guyomar CLA 2010-10-29 10:44:54 EDT
Hi Fabien,

Following contribution in bug 329038, here is the contribution for Java Code Synchronization.

The attached plugin declares 2 strategies according to the MoDisco Source Code Synchronization API

Thanks to this plugin it is now possible to navigate from a model element contained in a Java Composition Model to its source code in Java editor

(a) I, Nicolas Guyomar, wrote 100% of the code of the contribution
(b) I have the right to contribute the code to Eclipse
(c) I want to contribute this code under EPL


Regards

Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2010-10-29 10:46:44 EDT
Created attachment 182047 [details]
org.eclipse.modisco.java.composition.ui

This plugin declares : 
- A SourceStrategy extension to resolve ASTNodeSourceRegion of a Java Composition Element
- A RevealingStrategy extension to open the java editor and select the element directly in its source code
Comment 3 Nicolas Guyomar CLA 2010-11-04 06:41:27 EDT
Created attachment 182359 [details]
org.eclipse.modisco.java.composition.ui new project for model->code navigation

Updated project according to comments in bug 329038
Comment 4 Fabien Giquel CLA 2010-11-04 13:44:39 EDT
Thank you Nicolas.

Here is a contribution from an employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The bug does not need a CQ (see bug 322327).

Contributions have been commited into SVN (revisions 3574).
Comment 5 Hugo Bruneliere CLA 2011-01-11 05:13:37 EST
Contribution successfully integrated.