Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Apr 23, 2022
1 parent bdef2f1 commit 8d8e1c4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 4.24/platform_isv.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ <h2>Platform and Equinox API</h2>
<tr>
<td id="Platform" class="section" colspan="2"><h2>Platform Changes</h2></td>
</tr>
<tr id="ilog-service"> <!-- https://github.com/eclipse-platform/eclipse.platform.runtime/issues/33 -->
<td class="title"><a href="#ilog-service">ILog can now be acquired as a service</a></td>
<td class="content">
The ILog can now be acquired as service, so no need to have a <code>Plugin</code> activator or calling <code>Platform.getLog(...)</code> anymore if you are in a Dependency Injection Context:
<p>
<b>Example with E4:</b>
</p>
<pre>@Inject ILog log;</pre>
<p>
<b>Example with Declarative Services:</b><br/>
</p>
<pre>@Reference ILog log;</pre>
<p>
Of course any other way to acquire a Service (<code>ServiceTracker</code>, <code>ServiceCaller</code>, ...) will also work.
</p>
</td>
</tr>
<!-- ******************** End of Platform ********************** -->

<!-- *********************** SWT *********************** -->
Expand Down

0 comments on commit 8d8e1c4

Please sign in to comment.