carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/188/1/.cp/cheatsheets/rcpapp/rcpapp-create.xml
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8" ?>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
     Copyright (c) 2005, 2009 IBM Corporation and others.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
     All rights reserved. This program and the accompanying materials
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
     are made available under the terms of the Eclipse Public License v1.0
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
     which accompanies this distribution, and is available at
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
     http://www.eclipse.org/legal/epl-v10.html
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
    
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
     Contributors:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
         IBM Corporation - initial API and implementation
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
 -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<!-- Simple Cheat Sheet -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<cheatsheet title="Create a plug-in">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
   <!-- Introduction -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
   <intro href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
         This cheat sheet will demonstrate how to create and run an
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
         RCP application using PDE. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
         To learn more about using cheat sheets, click the help button
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
         in the top right corner (?). 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
   </intro>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
   <!-- Item -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
   <item title="Open the plug-in development perspective"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
         href="/org.eclipse.pde.doc.user/guide/tools/views/views.htm"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
         dialog="false"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
         skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
         To open the plug-in development perspective,
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
         select <b>Window-&gt;Open Perspective-&gt;Other...</b> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
         and choose <b>Plug-in Development</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
         Alternatively, click the following button to perform the task.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
      <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.pde.ui.PDEPerspective)" required="false" translate="" />
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
   <!-- Item -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
   <item title="Create the plug-in"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
         href="/org.eclipse.pde.doc.user/guide/tools/project_wizards/new_plugin_project.htm"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
         dialog="true"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
         skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
         To create the plug-in, perform the following steps:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
      <subitem label="Select &quot;File-&gt;New-&gt;Project...&quot; from the main menu, expand the &quot;Plug-in Development&quot; category within the resulting &quot;New Project&quot; dialog box, and choose &quot;Plug-in Project&quot;" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
               skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
         <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.pde.ui.NewProjectWizard)" required="false" translate="" />
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
      <subitem label="Input &quot;com.example.rcpapp&quot; into the &quot;Project Name&quot; text box on the &quot;Plug-in Project&quot; page and click &quot;Next &gt;&quot;" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
      <subitem label="Select the &quot;Yes&quot; radio button under the &quot;Rich Client Application&quot; heading on the &quot;Plug-in Content&quot; page and click &quot;Next &gt;&quot;" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
      <subitem label="Select the &quot;Hello RCP&quot; template from the list of &quot;Available Templates&quot; and click &quot;Next&quot;" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
      <subitem
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
            label="Select the &quot;Add branding&quot; check box and click &quot;Finish&quot;">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
      </subitem>           
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
   <!-- Item -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
   <item title="Run the RCP Application"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
         dialog="false"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
         href="/org.eclipse.pde.doc.user/guide/tools/launchers/eclipse_application_launcher.htm"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
         skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
         To run the RCP application,
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
         perform the following steps:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
      <subitem label="Select the &quot;com.example.rcpapp&quot; plug-in editor from the workbench and select the &quot;Overview&quot; tab within it" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
               skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
         <command serialization="org.eclipse.ui.navigate.openResource(filePath=/com.example.rcpapp/META-INF/MANIFEST.MF)" required="false" translate="" />
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
      </subitem>               
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
      <subitem label="Click the &quot;Launch an Eclipse application&quot; hyperlink under the &quot;Testing&quot; heading" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
      <subitem label="Verify that you see an empty window with a window title of &quot;Hello RCP&quot;" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
               skip="true"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
      <subitem label="Exit the RCP application" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    92
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    93
   <!-- Item -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    94
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    95
   <item title="Modify the plug-in source"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    96
         dialog="true"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    97
         skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    98
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    99
         In this step, we want to suppress the <b>Hello RCP</b> text in
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   100
         the window title bar of our RCP application.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   101
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   102
         <br/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   103
         To modify the plug-in source accordingly, 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   104
         perform the following steps:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   105
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   106
      <subitem label="Open &quot;ApplicationWorkbenchWindowAdvisor.java&quot; by locating it in the &quot;src&quot; folder of the &quot;com.example.rcpapp&quot; package in the &quot;Package Explorer&quot; view and double-clicking it" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   107
               skip="false">                                                    
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   108
         <command serialization="org.eclipse.ui.navigate.openResource(filePath=/com.example.rcpapp/src/com/example/rcpapp/ApplicationWorkbenchWindowAdvisor.java)" required="false" translate="" />
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   109
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   110
      <subitem label="Comment out &apos;configurer.setTitle(&quot;Hello RCP&quot;);&apos; in the &quot;preWindowOpen()&quot; method" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   111
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   112
      <subitem label="Select &quot;File-&gt;Save&quot; from the main menu" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   113
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   114
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   115
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   116
   <!-- Item -->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   117
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   118
   <item title="Test the RCP Application"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   119
         dialog="false"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   120
         href="/org.eclipse.pde.doc.user/guide/tools/launchers/eclipse_application_launcher.htm"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   121
         skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   122
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   123
         To test the RCP application,
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   124
         perform the following steps:
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   125
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   126
      <subitem label="Select the &quot;com.example.rcpapp&quot; plug-in editor from the workbench and select the &quot;Overview&quot; tab within it" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   127
               skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   128
         <command serialization="org.eclipse.ui.navigate.openResource(filePath=/com.example.rcpapp/META-INF/MANIFEST.MF)" required="false" translate="" />
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   129
      </subitem>               
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   130
      <subitem label="Click the &quot;Launch an Eclipse application&quot; hyperlink under the &quot;Testing&quot; heading" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   131
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   132
      <subitem label="Verify that you see an empty window with no window title" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   133
               skip="true"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   134
      <subitem label="Exit the RCP application" 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   135
               skip="false"/>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   136
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   137
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   138
</cheatsheet>