blob: 11b469282be0f6bd73cd3f7e6f01503eb8e9b231 [file] [log] [blame]
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>user</title>
</head>
<body>
<h1 id="Java_source_code_synchronization">Java source code synchronization</h1>
<h2 id="Description">Description</h2>
<p>A new step in Java model browsing is to link model elements directly with their source code. This synchronization is possible thanks to the MoDisco Source Code Synchronization Framework. Basically, this new feature allows the MoDisco Model Browser to behave like the Eclipse outline.</p>
<h2 id="How_does_it_work">How does it work</h2>
<p>Prerequisite is to
<a href="../../../org.eclipse.modisco.java.doc/mediawiki/composition/user.html#User_manual">create a Composition model</a>
</p>
<p>Once your composition model is opened, all you have to do to navigate from your java model to its source code is to activate the source code synchronization (this will prevent the Eclipse Properties view from opening on double-click):</p>
<p>
<img align="middle" title="Source code synchronisation" alt="Source code synchronisation" border="1" src="../../img/composition/MoDisco-ActivateCodeSynchronization.jpg"/>
</p>
<p>And then double click on an element to directly open its file and get this element selected : on the following figure we double-clicked on the method "setMyInteger"</p>
<p>
<img align="middle" title="Java source file opened and element selected" alt="Java source file opened and element selected" border="1" src="../../img/composition/MoDisco-CodeSynchronizationDoubleClick.jpg"/>
</p>
<p>If you prefer to keep the action "Open the
<b>Properties</b> view" on the double click action, you can use the contextual menu to perform a single synchronization : the result will be exactly the same
</p>
<p>
<img align="middle" title="Contextual menu" alt="Contextual menu" border="1" src="../../img/composition/MoDisco-CodeSynchronization-ContextualMenujpg.jpg"/>
</p>
</body>
</html>