updated N&N in doc bundle for 2.1M7
diff --git a/plugins/org.eclipse.objectteams.otdt.doc/guide/images/screenshots/NN21/callHierarchyLifting.png b/plugins/org.eclipse.objectteams.otdt.doc/guide/images/screenshots/NN21/callHierarchyLifting.png
new file mode 100644
index 0000000..e7bec5e
--- /dev/null
+++ b/plugins/org.eclipse.objectteams.otdt.doc/guide/images/screenshots/NN21/callHierarchyLifting.png
Binary files differ
diff --git a/plugins/org.eclipse.objectteams.otdt.doc/guide/news/new_in_2.1.html b/plugins/org.eclipse.objectteams.otdt.doc/guide/news/new_in_2.1.html
index b9def0e..0ef4875 100644
--- a/plugins/org.eclipse.objectteams.otdt.doc/guide/news/new_in_2.1.html
+++ b/plugins/org.eclipse.objectteams.otdt.doc/guide/news/new_in_2.1.html
@@ -7,11 +7,11 @@
</head>
<body>
<h1>OTDT 2.1 - New and Noteworthy</h1>
-<div class="navigation"><i>Status: 2.1 M5</i></div>
+<div class="navigation"><i>Status: 2.1 M7</i></div>
<div class="navigation">On this page:
<!--a href="#metrics">• Metrics Plug-in</a-->
<!--a href="#configuration">• Configuration</a-->
-<!--a href="#views">• Views/Dialogs</a-->
+<a href="#views">• Views/Dialogs</a>
<a href="#assist">• Content Assist</a>
<!--a href="#refactor">• Refactoring</a-->
<a href="#formatting">• Formatting</a>
@@ -21,6 +21,7 @@
<a href="#compiler">• Compiler</a>
<a href="#otre">• Runtime</a>
<!--a href="#otequinox">• OT/Equinox</a-->
+<a href="#releng">• Release Engineering</a>
</div>
<table cellpadding="10" cellspacing="0" width="100%">
<colgroup>
@@ -43,8 +44,23 @@
</tr>
<div class="listbox"><div class="listing"><pre><code class="keyword">public team class</code> <font color="blue">MyTeam</font> {
}</pre></div></div>
- <tr><td colspan="2" id="views"><h2>Views & Dialogs</h2></td></tr>
-->
+ <tr><td colspan="2" id="views"><h2>Views & Dialogs</h2></td></tr>
+ <tr>
+ <td><p align="right"><b>Lifting in call hierarchy</b><br>
+ <span class="since">since 2.1M6</span><br>
+ <a class="buglink" title="CallHierarchy should consider lifting as role instance creation" href="https://bugs.eclipse.org/301314">301314</a></p></td>
+ <td><p>Previously, the call hierarchy for a role constructor was incomplete because
+ roles can be constructed on-demand by lifting.
+ To visualize this implicit behavior the call hierarchy has been extended to
+ consider occurrences of lifting as invocations of the role's lifting constructor.
+ </p>
+ <p><img alt="Call hierarchy for role construction" src="../images/screenshots/NN21/callHierarchyLifting.png"></p>
+ <p>Here the call hierarchy was opened for the role type <code>Item</code> to find all paths towards instantiation.
+ The call hierarchy shows the callin binding <code>earchCredit <- after book</code> because it may
+ trigger lifting a <code>Segment</code> to its <code>Item</code> role.</p>
+ </td>
+ </tr>
<tr><td colspan="2" id="assist"><h2>Content assist</h2></td></tr>
<tr>
<td><p align="right"><b>Add signatures to method binding</b><br>
@@ -149,6 +165,27 @@
</p>
</td>
</tr>
+ <tr>
+ <td><p align="right"><b>Base class as method return</b><br>
+ <span class="since">since 2.1M6</span><br>
+ <a class="buglink" title="[compiler][otjld] consider allowing base imported types as the return type of a team method" href="https://bugs.eclipse.org/370273">370273</a></p></td>
+ <td><p>Mentioning a base imported class in the body of a team or role is allowed.
+ However, a team method may want to return a role which then should be lowered on the way.
+ Previously, this lowering was not possible, because the base type could not be mentioned (by its simple name).
+ For the specific situation of team method return types this restriction has been removed.
+ </p>
+ <p>
+ <div class="listbox"><div class="listing"><pre><code class="keyword">import base</code> some.pack.Base; // <span style="color:red">base import restricts usage of "Base"</span>
+<code class="keyword">public team class</code> T {
+ <code class="keyword">protected class</code> R <code class="keyword">playedBy</code> Base { }
+ <code class="keyword">private </code> R r;
+ <code class="keyword">public</code> <b style="color:blue">Base</b> getObject() {
+ <code class="keyword">return this</code>.r; // <span style="color:green">applies lowering</span>
+ }
+}</pre></div></div>
+ </p>
+ </td>
+ </tr>
<tr><td colspan="2" id="debug"><h2>Run / Debug</h2></td></tr>
<tr>
<td><p align="right"><b>Simplified launching with OT/Equinox</b><br>
@@ -167,6 +204,30 @@
</p>
</td>
</tr>
+ <tr>
+ <td><p align="right"><b>Hot code replacement</b><br>
+ <span class="since">since 2.1M7</span><br>
+ <a class="buglink" title="[debug] support hot code replacement of teams/roles/bases" href="https://bugs.eclipse.org/378176">378176</a><br>
+ <a class="buglink" title="Support Hot Code Replacement for OT/Equinox" href="https://bugs.eclipse.org/378195">378195</a></p></td>
+ <td><p>
+ Previously, when debugging an OT/J or OT/Equinox application,
+ changes made to the source code of the running application could not be applied on the fly,
+ because the JVM would detect signature mismatches.
+ This was caused by the fact that during hot code replacement the Object Teams bytecode transformer was not used.
+ </p>
+ <p>
+ This has been fixed by enabling the Object Teams transformer to re-weave already loaded classes.
+ Additionally, for OT/Equinox debug launches a new Java agent has been developed
+ to trigger weaving also for hot code replacement (which is not supported by the underlying adaptor hooks in Equinox).
+ This agent is automatically added to the Java command line for all OT/Equinox debug launches.
+ </p>
+ <p>
+ As the result it is no possible to directly see the effect of source code changes even in woven
+ classes without restarting the application. Note, that hot code replacement is limited by the JVM
+ to changes that do not affect any signatures.
+ </p>
+ </td>
+ </tr>
<!--
<tr><td colspan="2" id="api"><h2>API</h2></td></tr>
-->
@@ -213,5 +274,16 @@
</td>
</tr>
+ <tr><td colspan="2" id="releng"><h2>Release Engineering</h2></td></tr>
+ <tr><td><p align="right"><b>Source bundles</b><br>
+ <span class="since">since 2.1M6</span><br>
+ <a class="buglink" title="Create source bundles and feature" href="https://bugs.eclipse.org/370650">370650</a></p></td>
+ <td><p>We now ship an additional (optional) feature, <code>org.eclipse.objectteams.otdt.source.feature</code>
+ that includes the source code of all Object Teams plug-ins to support browsing into binary plug-ins
+ on which plug-in projects in the workspace depend.
+ </p>
+ </td>
+ </tr>
+
</table>
</body>
\ No newline at end of file
diff --git a/releng/map/otdt.map b/releng/map/otdt.map
index f8eedb8..fa11ec6 100644
--- a/releng/map/otdt.map
+++ b/releng/map/otdt.map
@@ -15,7 +15,7 @@
plugin@org.eclipse.objectteams.otdt.debug,2.0.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.debug,tag=builds/201105161939
plugin@org.eclipse.objectteams.otdt.debug.ui,2.1.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.debug.ui,tag=builds/201203201248
plugin@org.eclipse.objectteams.otdt.ui,2.1.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.ui
-plugin@org.eclipse.objectteams.otdt.doc,2.1.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.doc,tag=builds/201203201248
+plugin@org.eclipse.objectteams.otdt.doc,2.1.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.doc
plugin@org.eclipse.objectteams.otdt.metrics,0.7.0=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.otdt.metrics,tag=builds/201101290806
plugin@org.eclipse.objectteams.runtime=GIT,repo=git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git,path=plugins/org.eclipse.objectteams.runtime