Stephan Herrmann | 0166441 | 2010-04-01 20:28:43 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <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" /> |
| 4 | <link rel=stylesheet type="text/css" href="../css/book.css"> |
| 5 | <link rel=stylesheet type="text/css" href="otguide.css"> |
| 6 | <title>Comparing Bound Methods</title> |
| 7 | <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| 8 | </head> |
| 9 | <body> |
| 10 | <h1>Comparing Bound Methods</h1> |
| 11 | |
| 12 | |
| 13 | |
| 14 | <table><tr><td width="320" valign="top"> |
| 15 | <p> |
| 16 | <strong>The OTDT provides a special action for comparing a role method with the base method to which it is bound.</strong> |
| 17 | </p> |
| 18 | <p> |
| 19 | To invoke this action the <strong>context menu</strong> of a callin method binding (in package explorer or outline) |
| 20 | is used: <span class="ui"><nobr>Compare With > <img src="../images/callinbindingreplace_obj.gif"> Bound Base Method</nobr></span>. |
| 21 | Alternatively, the context menu can also be used on a <code class="keyword">callin</code> method. |
| 22 | </p> |
| 23 | <p> |
| 24 | When invoked this action opens a <strong>compare editor</strong>, the left hand side showing the role method |
| 25 | and the right hand side showing the bound base method. |
| 26 | The role method is editable whereas the base method is shown read-only. |
| 27 | </p> |
| 28 | <p> |
| 29 | The action is most useful for <code class="keyword">callin</code> methods that are created |
| 30 | by copying the base method in order to apply fine grained modifications. |
| 31 | In this situation the compare editor can be used to inspect and update the modifications |
| 32 | as well as adopt any changes that might have occurred to the base method during evolution. |
| 33 | </p> |
| 34 | </td> |
| 35 | <td> |
| 36 | <img alt="Compare menu" src="images/screenshots/CompareMenu.png"> |
| 37 | </td></tr></table> |
| 38 | <p> |
| 39 | <img alt="Compare editor for bound methods" src="images/screenshots/CompareWithBaseMethod.png"> |
| 40 | </p> |
| 41 | </body> |
| 42 | </html> |