blob: 02c30a825a66736a48057e15eb215a643508610a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Service Example</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>jcorchis</o:Author>
<o:LastAuthor>jcorchis</o:LastAuthor>
<o:Revision>3</o:Revision>
<o:TotalTime>50</o:TotalTime>
<o:Created>2005-06-13T12:55:00Z</o:Created>
<o:LastSaved>2005-06-13T13:54:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>186</o:Words>
<o:Characters>1061</o:Characters>
<o:Company>Rational Software</o:Company>
<o:Lines>8</o:Lines>
<o:Paragraphs>2</o:Paragraphs>
<o:CharactersWithSpaces>1245</o:CharactersWithSpaces>
<o:Version>10.6735</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style type="text/css">
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h2
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:2;
font-size:18.0pt;
font-family:"Times New Roman";
font-weight:bold;}
h3
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:3;
font-size:13.5pt;
font-family:"Times New Roman";
font-weight:bold;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1949502611;
mso-list-template-ids:1036548840;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="blue"
style="tab-interval:.5in">
<div class="Section1">
<h2>Service Example</h2>
<h3>Introduction</h3>
<p>This example describes the usage of the Service framework within
the SDK. It demonstrates how to create a Service and define
Providers for that service as well as giving clients access to the
Service.</p>
<h3>References</h3>
<p>Refer to the on-line Java documentation for the package
org.eclipse.gmf.runtime.common.core.service for more information on
general use and API specifics.</p>
<h3>Description</h3>
<p>This example plug-in, called
org.eclipse.gmf.examples.runtime.common.service, creates a Widget
Service and defines two Widget Providers. This plug-in also
contributes an action which request Widgets from the Widget
Service.</p>
<p>Please refer to the tutorial <a
href="../../tutorials/Service%20and%20Provider%20Tutorial.html">Service
and Provider Tutorial</a> for viewing the code samples within this
example</p>
<h3>Usage</h3>
<p>Refer to this example if you need to:</p>
<ol start="1" type="1">
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in">
To create a Service which Providers to contribute to the Service
via the Service extension point.</li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in">
Allow Providers to prioritize themselves so that results from the
Service are deterministic.</li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in">
Allow one or more Providers to service a client request.</li>
</ol>
<br />
<br />
<hr />
<p><a href="http://www.eclipse.org/legal/epl-v10.html">Copyright
(c) 2000,2005 IBM Corporation and others. All Rights
Reserved.</a></p>
<br />
<br />
</div>
</body>
</html>