Stephan Herrmann | 0166441 | 2010-04-01 20:28:43 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <introContent> |
| 3 | <!-- Extension to the SDK Samples Page. --> |
| 4 | <extensionContent id="org.eclipse.objectteams.otdt.samples.samplesExtension" |
| 5 | name="Object Teams Samples" |
| 6 | alt-style="/css/swt.properties" |
| 7 | style="/css/samples.css" |
| 8 | path="samples/@"> |
| 9 | |
| 10 | <anchor id="otSampleAnchor"/> |
| 11 | <group label="Object Teams Samples" id="swt" style-id="samples-group"> |
| 12 | <text style-id="group-description">Explore Object Teams development through code samples.</text> |
| 13 | <link label="Object Teams samples" url="http://org.eclipse.ui.intro/showPage?id=otsamples" id="otsamples" style-id="sample-link"> |
| 14 | <text>A small collection of Object Teams samples |
| 15 | </text> |
| 16 | </link> |
| 17 | </group> |
| 18 | |
| 19 | </extensionContent> |
| 20 | |
| 21 | <page style="css/samples.css" alt-style="css/swt.properties" id="otsamples" style-id="page"> |
| 22 | <title style-id="intro-header">Welcome to Eclipse 3.0</title> |
| 23 | <group id="background-image" filteredFrom="swt"/> |
| 24 | <group id="curve-image" filteredFrom="swt"/> |
| 25 | <include path="overview/navigation-links"/> |
| 26 | |
| 27 | <group id="page-content" > |
| 28 | <group id="content-header" label="Object Teams/Java Samples" filteredFrom="html"></group> |
| 29 | <text style-id="page-title" id="page-title" filteredFrom="swt">Object Teams/Java Samples</text> |
| 30 | <text style-id="page-description" id="page-description">Explore Object Teams by installing some prefabricated samples.</text> |
| 31 | <group id="workbench" style-id="samples-group"> |
| 32 | <link label="OTSample-StopWatch" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.objectteams.otdt.samples&id=org.eclipse.objectteams.otdt.samples.stopwatch" id="stopwatchsample" style-id="sample-link"> |
| 33 | <text>This implementation of a simple stop watch demonstrates how the Model-View-Controller pattern can be applied in Object Teams. |
| 34 | |
| 35 | The example gives a basic overview over these concepts: |
| 36 | (1) team and role classes, |
| 37 | (2) method bindings, and |
| 38 | (3) lifting a base object to its role.</text></link> |
| 39 | <link label="OTSample-Observer" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.objectteams.otdt.samples&id=org.eclipse.objectteams.otdt.samples.observer" id="observersample" style-id="sample-link"> |
| 40 | <text>A reusable implementation of the standard Observer pattern with two applications. |
| 41 | |
| 42 | A fine point in this example is the temporary deactivation of a team to avoid the "jumping aspects" problem.</text></link> |
| 43 | <link label="OTSample-Flightbonus" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.objectteams.otdt.samples&id=org.eclipse.objectteams.otdt.samples.flightbooking" id="flightbonussample" style-id="sample-link"> |
| 44 | <text>This examples demonstrates, how a reusable collaboration for collecting bonus points |
| 45 | can be integrated into an existing application for flight booking. |
| 46 | |
| 47 | It shows a typical decomposition into three parts: |
| 48 | (1) a core application, |
| 49 | (2) an abstract collaboration, and |
| 50 | (3) a connector which combines the other two modules.</text></link> |
| 51 | <link label="OTSample-Ordersystem" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.objectteams.otdt.samples&id=org.eclipse.objectteams.otdt.samples.ordersystem" id="ordersystemsample" style-id="sample-link"> |
| 52 | <text>A comprehensive example showing different patterns of applying Object Teams. |
| 53 | It implements three components: a storage, reservation of items, and orders.</text></link> |
| 54 | <link label="OTSample-ATM" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.objectteams.otdt.samples&id=org.eclipse.objectteams.otdt.samples.atm" id="atmsample" style-id="sample-link"> |
| 55 | <text>An example showing the use of guard predicates in Object Teams. |
| 56 | |
| 57 | It implements a simple ATM that adds specific behaviour to specific groups of accounts: |
| 58 | (1) Foreign accounts are charged additional fees, |
| 59 | (2) The balance of foreign cannot be queried, |
| 60 | (3) Subscribed accounts receive a gratification for each crediting operation performed at the ATM.</text></link> |
| 61 | </group> |
| 62 | </group> |
| 63 | </page> |
| 64 | </introContent> |
| 65 | |
| 66 | |