| <html> |
| <head> |
| <meta name="copyright" content="Copyright Technical University Berlin and others 2004, 2010. This page is made available under the Eclipse Public License v1.0. For full details see http://www.eclipse.org/legal/epl-v10.html" /> |
| <link rel=stylesheet type="text/css" href="../css/book.css"> |
| <link rel=stylesheet type="text/css" href="otguide.css"> |
| <title>Comparing Bound Methods</title> |
| <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| </head> |
| <body> |
| <h1>Comparing Bound Methods</h1> |
| |
| |
| |
| <table><tr><td width="320" valign="top"> |
| <p> |
| <strong>The OTDT provides a special action for comparing a role method with the base method to which it is bound.</strong> |
| </p> |
| <p> |
| To invoke this action the <strong>context menu</strong> of a callin method binding (in package explorer or outline) |
| is used: <span class="ui"><nobr>Compare With > <img src="../images/callinbindingreplace_obj.gif"> Bound Base Method</nobr></span>. |
| Alternatively, the context menu can also be used on a <code class="keyword">callin</code> method. |
| </p> |
| <p> |
| When invoked this action opens a <strong>compare editor</strong>, the left hand side showing the role method |
| and the right hand side showing the bound base method. |
| The role method is editable whereas the base method is shown read-only. |
| </p> |
| <p> |
| The action is most useful for <code class="keyword">callin</code> methods that are created |
| by copying the base method in order to apply fine grained modifications. |
| In this situation the compare editor can be used to inspect and update the modifications |
| as well as adopt any changes that might have occurred to the base method during evolution. |
| </p> |
| </td> |
| <td> |
| <img alt="Compare menu" src="images/screenshots/CompareMenu.png"> |
| </td></tr></table> |
| <p> |
| <img alt="Compare editor for bound methods" src="images/screenshots/CompareWithBaseMethod.png"> |
| </p> |
| </body> |
| </html> |