| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <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:st1="urn:schemas-microsoft-com:office:smarttags" |
| xmlns="http://www.w3.org/TR/REC-html40"> |
| |
| <head> |
| <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"> |
| <meta name=ProgId content=Word.Document> |
| <meta name=Generator content="Microsoft Word 10"> |
| <meta name=Originator content="Microsoft Word 10"> |
| <link rel=File-List href="Tutorial_files/filelist.xml"> |
| <link rel=Edit-Time-Data href="Tutorial_files/editdata.mso"> |
| <!--[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>Tutorial Template</title> |
| <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" |
| name="City"/> |
| <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" |
| name="place"/> |
| <!--[if gte mso 9]><xml> |
| <o:DocumentProperties> |
| <o:Author>jcorchis</o:Author> |
| <o:LastAuthor>jcorchis</o:LastAuthor> |
| <o:Revision>7</o:Revision> |
| <o:TotalTime>111</o:TotalTime> |
| <o:Created>2005-04-21T14:33:00Z</o:Created> |
| <o:LastSaved>2005-04-21T18:18:00Z</o:LastSaved> |
| <o:Pages>1</o:Pages> |
| <o:Words>636</o:Words> |
| <o:Characters>3627</o:Characters> |
| <o:Company>Rational Software</o:Company> |
| <o:Lines>30</o:Lines> |
| <o:Paragraphs>8</o:Paragraphs> |
| <o:CharactersWithSpaces>4255</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]--><!--[if !mso]><object |
| classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object> |
| <style> |
| st1\:*{behavior:url(#ieooui) } |
| </style> |
| <![endif]--> |
| <link rel=Stylesheet type="text/css" media=all href=technote.css> |
| <style> |
| <!-- |
| /* Font Definitions */ |
| @font-face |
| {font-family:Wingdings; |
| panose-1:5 0 0 0 0 0 0 0 0 0; |
| mso-font-charset:2; |
| mso-generic-font-family:auto; |
| mso-font-pitch:variable; |
| mso-font-signature:0 268435456 0 0 -2147483648 0;} |
| /* 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";} |
| h1 |
| {mso-margin-top-alt:auto; |
| margin-right:0in; |
| mso-margin-bottom-alt:auto; |
| margin-left:0in; |
| mso-pagination:widow-orphan; |
| mso-outline-level:1; |
| font-size:24.0pt; |
| font-family:"Times New Roman"; |
| font-weight:bold;} |
| 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-style:italic;} |
| a:link, span.MsoHyperlink |
| {color:blue; |
| text-decoration:underline; |
| text-underline:single;} |
| a:visited, span.MsoHyperlinkFollowed |
| {color:blue; |
| text-decoration:underline; |
| text-underline:single;} |
| p |
| {mso-margin-top-alt:auto; |
| margin-right:0in; |
| mso-margin-bottom-alt:auto; |
| mso-pagination:widow-orphan; |
| font-size:12.0pt; |
| font-family:"Times New Roman"; |
| mso-fareast-font-family:"Times New Roman";} |
| code |
| {font-family:"Courier New"; |
| mso-ascii-font-family:"Courier New"; |
| mso-fareast-font-family:"Times New Roman"; |
| mso-hansi-font-family:"Courier New"; |
| mso-bidi-font-family:"Courier New";} |
| pre |
| {margin-top:0in; |
| margin-right:0in; |
| margin-bottom:0in; |
| margin-left:24.0pt; |
| margin-bottom:.0001pt; |
| mso-pagination:widow-orphan; |
| tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; |
| font-size:10.0pt; |
| font-family:"Courier New"; |
| mso-fareast-font-family:"Times New Roman";} |
| p.notabene, li.notabene, div.notabene |
| {mso-style-name:notabene; |
| mso-margin-top-alt:auto; |
| margin-right:48.0pt; |
| mso-margin-bottom-alt:auto; |
| margin-left:48.0pt; |
| mso-pagination:widow-orphan; |
| border:none; |
| mso-border-top-alt:solid windowtext .75pt; |
| mso-border-bottom-alt:solid windowtext .75pt; |
| padding:0in; |
| mso-padding-alt:4.0pt 0in 4.0pt 0in; |
| font-size:12.0pt; |
| font-family:"Times New Roman"; |
| mso-fareast-font-family:"Times New Roman";} |
| p.question, li.question, div.question |
| {mso-style-name:question; |
| mso-margin-top-alt:auto; |
| margin-right:48.0pt; |
| mso-margin-bottom-alt:auto; |
| margin-left:48.0pt; |
| mso-pagination:widow-orphan; |
| font-size:12.0pt; |
| font-family:"Times New Roman"; |
| mso-fareast-font-family:"Times New Roman"; |
| font-style:italic;} |
| p.backto, li.backto, div.backto |
| {mso-style-name:backto; |
| 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";} |
| span.SpellE |
| {mso-style-name:""; |
| mso-spl-e:yes;} |
| span.GramE |
| {mso-style-name:""; |
| mso-gram-e:yes;} |
| @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:1754820217; |
| mso-list-template-ids:-806848416;} |
| @list l0:level1 |
| {mso-level-number-format:bullet; |
| mso-level-text:\F0B7; |
| mso-level-tab-stop:.5in; |
| mso-level-number-position:left; |
| text-indent:-.25in; |
| mso-ansi-font-size:10.0pt; |
| font-family:Symbol;} |
| 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;} |
| </style> |
| <![endif]--> |
| </head> |
| |
| <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'> |
| |
| <div class=Section1> |
| |
| <p class=MsoNormal><a name=top></a><img width=629 height=192 id="_x0000_i1025" |
| src=logo.gif border=0></p> |
| |
| <h1 align=center style='text-align:center'>Tutorial: << Tutorial Name>></h1> |
| |
| <table class=MsoNormalTable border=0 cellspacing=8 cellpadding=0 |
| style='mso-cellspacing:6.0pt;margin-left:24.0pt'> |
| <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes'> |
| <td style='padding:.75pt .75pt .75pt .75pt'> |
| <p class=MsoNormal>Version: <version number></p> |
| </td> |
| <td style='padding:.75pt .75pt .75pt .75pt'> |
| <p class=MsoNormal>Date: <date></p> |
| </td> |
| </tr> |
| </table> |
| |
| <h2>Contents</h2> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#_Overview">Overview</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#refs">References</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#trace">Introduction</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#reqs">Step One</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#constraints">Step X</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#_Example">Example</a></p> |
| |
| <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; |
| margin-left:48.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in'><![if !supportLists]><span |
| style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Symbol; |
| mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span |
| style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><a |
| href="#models">Summary</a></p> |
| |
| <div class=MsoNormal align=center style='text-align:center'> |
| |
| <hr size=2 width="100%" align=center> |
| |
| </div> |
| |
| <h2><a name=intro></a>[Developers Guide Tutorials provide a step-wise example |
| of a feature of GMF.<span style='mso-spacerun:yes'> |
| </span>These tutorials follow the basic flow of Eclipse articles.<span |
| style='mso-spacerun:yes'> </span>In your tutorial, provide the basics for |
| getting the reader familiar with the steps required to use a platform feature, |
| using UI pictures and code snippets.<span style='mso-spacerun:yes'> </span>The |
| idea is that the reader will be able understand the steps required to use the <st1:City><st1:place>GMF</st1:place></st1:City> |
| feature for their own purposes. <span style='mso-spacerun:yes'> </span>Be sure |
| to include links to any Examples/Samples.<span style='mso-spacerun:yes'> |
| </span></h2> |
| |
| <h2><o:p> </o:p></h2> |
| |
| <h2><a name="_Overview"></a>Overview</h2> |
| |
| <p class=backto><span style='font-size:10.0pt'>[<a href="#top"><span |
| class=GramE>back</span> to top</a>]</span></p> |
| |
| <p>Provide the objectives of your tutorial. For example, “This tutorial provides |
| the reader with the steps to use extension point… This extension point provides…<span |
| style='mso-spacerun:yes'> </span>You may want to use this when… etc.” |
| </p> |
| |
| <h2><a name=refs></a>References</h2> |
| |
| <p class=backto><span style='font-size:10.0pt'>[<a href="#top"><span |
| class=GramE>back</span> to top</a>]</span></p> |
| |
| <p>Provide references to any other tutorials that may supplement to your |
| tutorial.<span style='mso-spacerun:yes'> </span>You are also encouraged to refer |
| the reader to a specific example in the Example section of the Developers Guide.</p> |
| |
| <h2><a name=trace></a>Introduction</h2> |
| |
| <p class=backto><span style='font-size:10.0pt'>[<a href="#top"><span |
| class=GramE>back</span> to top</a>]</span></p> |
| |
| <p>Describe the approach (including the steps required) that is used in your |
| tutorial to achieve the objects of your tutorial.<span |
| style='mso-spacerun:yes'> </span>For example, “In this tutorial we will |
| create a <span class=SpellE>WidgetService</span> and <span class=SpellE>WidgetProviders</span> |
| to demonstrate <st1:City><st1:place>GMF</st1:place></st1:City>’s |
| Service infrastructure.”<span style='mso-spacerun:yes'> </span>Also, |
| include any recommended background knowledge the tutorial assumes on behalf of |
| the reader.<span style='mso-spacerun:yes'> </span>If the read does not possess |
| the required background knowledge refer them to the appropriate links.</p> |
| |
| <h2><a name=reqs></a>First Step</h2> |
| |
| <p class=backto><span style='font-size:10.0pt'>[<a href="#top"><span |
| class=GramE>back</span> to top</a>]</span></p> |
| |
| <p>Rename the section titles to something more meaningful - for example, “Creating |
| the <span class=SpellE>WidgetService</span>”.</p> |
| |
| <p><span class=GramE>Using text, code snippets and pictures to describe the steps |
| in your tutorial.</span><span style='mso-spacerun:yes'> </span><span |
| style='mso-spacerun:yes'> </span></p> |
| |
| <p>Important notices, warnings, or "<span class=SpellE>gotchas</span>" |
| can be highlighted via the "<span class=SpellE>notabene</span>" |
| paragraph style:</p> |
| |
| <div style='border-top:solid windowtext 1.0pt;border-left:none;border-bottom: |
| solid windowtext 1.0pt;border-right:none;mso-border-top-alt:solid windowtext .75pt; |
| mso-border-bottom-alt:solid windowtext .75pt;padding:4.0pt 0in 4.0pt 0in; |
| margin-left:48.0pt;margin-right:48.0pt'> |
| |
| <p class=notabene style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt; |
| margin-left:0in'><b>Note:</b> Put some important information in here.</p> |
| |
| </div> |
| |
| <p>Got a question to pose to reviewers? The "question" style provides |
| a consistent look-and-feel:</p> |
| |
| <p class=question><b>Question:</b> Put a question to the reviewers in here.</p> |
| |
| <p><o:p> </o:p></p> |
| |
| <h2><a name=constraints></a>Steps X</h2> |
| |
| <p class=backto><span style='font-size:10.0pt'>[<a href="#top"><span |
| class=GramE>back</span> to top</a>]</span></p> |
| |
| <p>Keep the number of steps in your tutorial to a reasonable number. <span |
| class=GramE>(<10?)</span></p> |
| |
| <p>Keep the length of a particular step reasonable as well - the read may get |
| lost in the details and lose sight of the objective.</p> |
| |
| <p>The "snippet" style on a <code><span style='font-size:10.0pt'><pre></span></code> |
| block provides a nice option for displaying code snippets:</p> |
| |
| <div style='border:solid windowtext 1.0pt;mso-border-alt:solid windowtext .75pt; |
| padding:4.0pt 4.0pt 4.0pt 4.0pt;margin-left:48.0pt;margin-right:24.0pt'><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span class=GramE><span |
| style='color:navy'>public</span></span><span style='color:navy'> void run(<span |
| class=SpellE>IAction</span> action) {<o:p></o:p></span></pre><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span |
| style='mso-tab-count:1'> </span><span class=SpellE>CreateTechnicalNoteWizard</span> wizard = new <span |
| class=SpellE><span class=GramE>CreateTechnicalNoteWizard</span></span><span |
| class=GramE>(</span>);<o:p></o:p></span></pre><pre style='margin-left:0in; |
| border:none;mso-border-alt:solid windowtext .75pt;padding:0in;mso-padding-alt: |
| 4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span style='mso-tab-count: |
| 1'> </span><span class=SpellE><span class=GramE>wizard.init</span></span><span |
| class=GramE>(</span>workbench, selection);<o:p></o:p></span></pre><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span |
| style='mso-tab-count:1'> </span><span class=GramE>new</span> <span |
| class=SpellE>WizardDialog</span>(<span class=SpellE>window.getShell</span>(), wizard).open();<o:p></o:p></span></pre><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span |
| style='mso-tab-count:1'> </span><o:p></o:p></span></pre><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span |
| style='mso-tab-count:1'> </span><span class=SpellE>IFile</span> <span |
| class=SpellE>resultFile</span> = <span class=SpellE><span class=GramE>wizard.getResultFile</span></span><span |
| class=GramE>(</span>);<o:p></o:p></span></pre><pre style='margin-left:0in; |
| border:none;mso-border-alt:solid windowtext .75pt;padding:0in;mso-padding-alt: |
| 4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span style='mso-tab-count: |
| 1'> </span><o:p></o:p></span></pre><pre style='margin-left:0in; |
| border:none;mso-border-alt:solid windowtext .75pt;padding:0in;mso-padding-alt: |
| 4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span style='mso-tab-count: |
| 1'> </span><span class=GramE>if</span> (<span class=SpellE>resultFile</span> != null && <span |
| class=SpellE>resultFile.exists</span>()) {<o:p></o:p></span></pre><pre |
| style='margin-left:0in;border:none;mso-border-alt:solid windowtext .75pt; |
| padding:0in;mso-padding-alt:4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span |
| style='mso-tab-count:2'> </span><span class=SpellE><span |
| class=GramE>openEditor</span></span><span class=GramE>(</span><span |
| class=SpellE>resultFile</span>);<o:p></o:p></span></pre><pre style='margin-left: |
| 0in;border:none;mso-border-alt:solid windowtext .75pt;padding:0in;mso-padding-alt: |
| 4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'><span style='mso-tab-count: |
| 1'> </span>}<o:p></o:p></span></pre><pre style='margin-left:0in; |
| border:none;mso-border-alt:solid windowtext .75pt;padding:0in;mso-padding-alt: |
| 4.0pt 4.0pt 4.0pt 4.0pt'><span style='color:navy'>}<o:p></o:p></span></pre></div> |
| |
| <p>HTML tables are an alternative that supports captions, but require manual |
| control of the formatting and <span class=SpellE>colour</span> inside the table |
| cell:</p> |
| |
| <table class=MsoNormalTable border=1 cellpadding=0 style='mso-cellspacing:1.5pt; |
| margin-left:24.0pt;background:white;mso-padding-alt:6.0pt 6.0pt 6.0pt 6.0pt'> |
| <tr style='mso-yfti-irow:0'> |
| <td style='border:none;padding:6.0pt 6.0pt 6.0pt 6.0pt'> |
| <p class=MsoNormal align=center style='text-align:center;vertical-align:top'>Example |
| action delegate run( ) method</p> |
| </td> |
| </tr> |
| <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'> |
| <td style='padding:6.0pt 6.0pt 6.0pt 6.0pt'><pre><span style='color:navy'>public void run(<span |
| class=SpellE>IAction</span> action) {<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span><span |
| class=SpellE>CreateTechnicalNoteWizard</span> wizard = new <span |
| class=SpellE>CreateTechnicalNoteWizard</span>();<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span><span |
| class=SpellE>wizard.init</span>(workbench, selection);<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span>new <span |
| class=SpellE>WizardDialog</span>(<span class=SpellE>window.getShell</span>(), wizard).open();<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span><o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span><span |
| class=SpellE>IFile</span> <span class=SpellE>resultFile</span> = <span |
| class=SpellE>wizard.getResultFile</span>();<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span><o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span>if (<span |
| class=SpellE>resultFile</span> != null && <span class=SpellE>resultFile.exists</span>()) {<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:2'> </span><span |
| class=SpellE>openEditor</span>(<span class=SpellE>resultFile</span>);<o:p></o:p></span></pre><pre><span |
| style='color:navy'><span style='mso-tab-count:1'> </span>}<o:p></o:p></span></pre><pre><span |
| style='color:navy'>}<o:p></o:p></span></pre></td> |
| </tr> |
| </table> |
| |
| <p><o:p> </o:p></p> |
| |
| <p><o:p> </o:p></p> |
| |
| <h2><a name="_Example"></a>Example</h2> |
| |
| <p>[<a href="#top"><span class=GramE><span style='font-size:10.0pt'>back</span></span><span |
| style='font-size:10.0pt'> to top</span></a>]</p> |
| |
| <p>Provide links to source files that referenced in the tutorial steps.</p> |
| |
| <div class=MsoNormal align=center style='text-align:center'> |
| |
| <hr size=2 width="100%" align=center> |
| |
| </div> |
| |
| <h2><a name=principles></a><a name=examples></a><a name=models></a><a name=api></a>Summary</h2> |
| |
| <p><span style='font-size:10.0pt'>[<a href="#top"><span class=GramE>back</span> |
| to top</a>]</span></p> |
| |
| <p>Review the steps in your tutorial against the objects set-out in the |
| overview.<span style='mso-spacerun:yes'> </span>Point the reader to |
| examples/samples or further recommended reading.</p> |
| |
| <div class=MsoNormal align=center style='text-align:center'> |
| |
| <hr size=2 width="100%" align=center> |
| |
| </div> |
| |
| <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> |
| |
| </div> |
| |
| </body> |
| |
| </html> |