blob: 785abc91518dd37746c5d7258b45972bcb103917 [file] [log] [blame]
<meta name="copyright" content="Copyright Stephan Herrmann and others 2011. This page is made available under the Eclipse Public License v1.0. For full details see" />
<link rel=stylesheet type="text/css" href="../css/book.css">
<link rel=stylesheet type="text/css" href="otjld/css/ot.css">
<link rel=stylesheet type="text/css" href="otguide.css">
<style type="text/css">
dt { margin-top:20px; }
<title>OT/J content/code assist: Add/Remove Signatures</title>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<h1 align="center">Quick fix/assists: Add/Remove Signatures</h1>
<dt id="remove"><strong>Remove signatures from method binding</strong>
Applicable on callout/callin method bindings with signatures:<br/>
<img style="margin-top:10px;" src="../images/screenshots/RemoveSignatures-QuickAssist.png"><br/>
This change is applicable as a <em>quick assist</em>, and &mdash; if either method spec cannot be resolved &mdash; it can also be used as a <em>quick fix</em>.<br/>
Should removing the signatures not fix the problem, subsequent invocation of the inverse, "Add signatures ...", may be tried.
<dt id="add"><strong>Add signatures to method binding</strong>
Applicable on callout/callin method bindings without signatures.<br />
If no compilation problem exists this change is offered as a <em>quick assist</em>,
which can, e.g., be used in preparation for adding a quard predicate or a parameter mapping.<br/>
It can be invoked as a <em>quick fix</em> if the base method spec is ambiguous due to overloading in the base class:<br />
<img style="margin-top:10px;" src="../images/screenshots/NN21/AmbiguousBaseMethod.png">.<br />
&nbsp;&nbsp; In this case the list of matching base methods will be presented for selection:<br />
<img style="margin-top:10px;" src="../images/screenshots/NN21/AddSignaturesAssist.png">,<br />