Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329045 - [Java] Allow navigating from model element to the Java editor
Summary: [Java] Allow navigating from model element to the Java editor
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.9.0 M3   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 329038 329040
Blocks:
  Show dependency tree
 
Reported: 2010-10-29 08:23 EDT by Fabien Giquel CLA
Modified: 2011-01-11 05:13 EST (History)
3 users (show)

See Also:
fabien.giquel: indigo+


Attachments
org.eclipse.modisco.java.composition.ui (8.53 KB, application/x-zip-compressed)
2010-10-29 10:46 EDT, Nicolas Guyomar CLA
no flags Details
org.eclipse.modisco.java.composition.ui new project for model->code navigation (8.89 KB, application/x-zip-compressed)
2010-11-04 06:41 EDT, Nicolas Guyomar CLA
fabien.giquel: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
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.