platform-ui-home/rcp/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13, Tue Oct 5 19:31:37 2004 UTC revision 1.14, Thu Oct 7 14:00:49 2004 UTC
# Line 107  Line 107 
107    </ol>    </ol>
108    </p>    </p>
109  <h4><a name="text_editor_example">Text Editor Example</h4>  <h4><a name="text_editor_example">Text Editor Example</h4>
   The RCP Text Editor Example is an example of a simple RCP app that makes use of the text editing infrastructure (an optional RCP component).  
   <br>  
   Click <a href="examples/texteditor/rcp_texteditor_ex.html">here</a> for the documentation for the example.  
110    <p>    <p>
111    To run the example in binary form (last updated June 28, 2004 for the R3.0 build):  The <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/rcp/examples/index.html">RCP Text Editor Example</a> is available from the <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/dev.html">platform-text development resources page</a>.
   <ol>  
     <li>Download the RCP Runtime build from the <a href="http://eclipse.org/downloads/index.php">Downloads</a> page, and extract it to a folder such as <em>c:\texteditor-example</em>.  
     <li>Download the <a href="examples/texteditor/org.eclipse.rcp.text_3.0.0.zip">RCP text editing component zip</a> and extract it to the eclipse/plugins subfolder.  
     <li>Download the <a href="examples/texteditor/org.eclipse.ui.examples.rcp.texteditor_1.0.0.zip">texteditor plugin zip</a> and extract it to the eclipse/plugins subfolder.  
     <li>Replace the eclipse/configuration/config.ini file with the appropriate config file from the texteditor plugin.  For example, on Windows,  
                      copy eclipse/plugins/org.eclipse.ui.examples.rcp.texteditor_1.0.0/config_win32.ini to eclipse/configuration/config.ini .  
     <li>Run the eclipse executable: For example, on Windows, run <code>eclipse.exe</code>.  
   </ol>  
112    </p>    </p>
113    <p>    <p>
   To load the text editor example source into your workspace:  
   <ol>  
   <li>Download the <a href="examples/texteditor/org.eclipse.ui.examples.rcp.texteditor_1.0.0.src.zip">texteditor source plugin</a> and save it on your harddisk.</li>  
   <li>Create a new java project in your workspace and name it <code>org.eclipse.ui.examples.rcp.texteditor</code>. Choose to "Create separate source and output folders".  
   <li>Choose File > Import > Zip File.  
   <li>Use the Browse button to select the zip file you downloaded in step 1. Choose the plugin created in step 2 as destination folder.  
   <li>Press Finish.  
   </ol>  
   To run the example from your workspace:  
   <ol>  
   <li>Choose Run > Debug...  
   <li>Under Run-time Workbench, there should be two new configurations: RCP Text Editor (gtk) and RCP Text Editor (win32).  
   <li>Edit the appropriate one as follows:  
     <ul>  
         <li>on the Arguments tab, change the workspace location to some directory with write access (different than your host workspace, and different than the workspace used for other launch configs);  
         <li>in the Program to Run group, ensure that the application <b>org.eclipse.ui.workbench.rcp.texteditor.application</b> is selected;  
         <li>on the Plug-ins tab, press Deselect All, check org.eclipse.ui.workbench.rcp.texteditor, press Add Required Plug-ins, and also check org.eclipse.update.configurator.  
         </ul>  
   <li>Press Debug.  
   <li>When the RCP Text Editor Example window opens, use File > Open to open a plain text, .xml, or .html file.  
   </ol>  
   
   <p>  
114    </p>    </p>
115  <h4><a name="rcp_and_r21">R2.1 Style Presentation</a></h4>  <h4><a name="rcp_and_r21">R2.1 Style Presentation</a></h4>
116    The presentation of your RCP application can be changed using the org.eclipse.ui.presentationFactories extension point. This example will show how to use the R2.1 presentation, provided by the org.eclipse.ui.presentations.r21 plugin, in the RCP Browser Example application.  Here is a <a href="examples/browser/browser-r21.jpg">screen shot</a> of the browser example using the R2.1 presentation.    The presentation of your RCP application can be changed using the org.eclipse.ui.presentationFactories extension point. This example will show how to use the R2.1 presentation, provided by the org.eclipse.ui.presentations.r21 plugin, in the RCP Browser Example application.  Here is a <a href="examples/browser/browser-r21.jpg">screen shot</a> of the browser example using the R2.1 presentation.

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14