| 61 |
<li><a href="generic_workbench_structure.html">Generic Workbench Plug-in |
<li><a href="generic_workbench_structure.html">Generic Workbench Plug-in |
| 62 |
Structure</a></li> |
Structure</a></li> |
| 63 |
</ul> |
</ul> |
| 64 |
<h4>Example</h4> |
<h4>Browser Example</h4> |
| 65 |
The RCP Browser Example is an example of a simple RCP app. |
The RCP Browser Example is an example of a simple RCP app. |
|
<a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ui.examples.rcp.browser/readme.html"> |
|
|
Click here for the readme file.</a> |
|
| 66 |
<p> |
<p> |
| 67 |
To run the example (last updated June 11, 2004 for the 3.0 RC2 build): |
To load the browser example source into your workspace, load project <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ui.examples.rcp.browser">org.eclipse.ui.examples.rcp.browser</a> from the Eclipse CVS repository. |
| 68 |
|
<br> |
| 69 |
|
Click <a href="http://dev.eclipse.org/cvshowto.html">here</a> for instructions on using CVS with Eclipse. |
| 70 |
|
<p> |
| 71 |
|
For instructions on running the example, see the |
| 72 |
|
<a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ui.examples.rcp.browser/readme.html">readme file</a>. |
| 73 |
|
<p> |
| 74 |
|
To run the example in binary form (last updated June 11, 2004 for the 3.0 RC2 build): |
| 75 |
<ol> |
<ol> |
| 76 |
<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:\browser-example</em>. |
<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:\browser-example</em>. |
| 77 |
<li>Download the <a href="org.eclipse.ui.examples.rcp.browser_3.0.0.zip">browser plugin zip</a> and extract it to the eclipse/plugins subfolder. |
<li>Download the <a href="org.eclipse.ui.examples.rcp.browser_3.0.0.zip">browser plugin zip</a> and extract it to the eclipse/plugins subfolder. |
| 80 |
<li>Run: <code>eclipse.exe</code>. |
<li>Run: <code>eclipse.exe</code>. |
| 81 |
</ol> |
</ol> |
| 82 |
</p> |
</p> |
| 83 |
<p> |
<h4>Text Editor Example</h4> |
| 84 |
The browser example's source is available in the Eclipse CVS repository, in project <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ui.examples.rcp.browser">org.eclipse.ui.examples.rcp.browser</a>. |
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). |
| 85 |
<br> |
<br> |
| 86 |
Click <a href="http://dev.eclipse.org/cvshowto.html">here</a> for instructions on using CVS with Eclipse. |
Click <a href="examples/texteditor/rcp_texteditor_ex.html">here</a> for the documentation for the example. |
| 87 |
</p> |
<p> |
| 88 |
|
To load the text editor example source into your workspace: |
| 89 |
|
<ol> |
| 90 |
|
<li> Click <a href="examples/texteditor/org.eclipse.ui.workbench.rcp.texteditor.zip">here</a> to download a zip file containing the source |
| 91 |
|
for the example. |
| 92 |
|
<li>Extract the zip to your Eclipse SDK workspace directory (your host workspace). |
| 93 |
|
<li>Choose File > Import > Existing Project Into Workspace. |
| 94 |
|
<li>Use the Browse button to select the <b>org.eclipse.ui.workbench.rcp.texteditor</b> directory extracted above. |
| 95 |
|
<li>Press Finish. |
| 96 |
|
</ol> |
| 97 |
|
To run the example: |
| 98 |
|
<ol> |
| 99 |
|
<li>Choose Run > Debug... |
| 100 |
|
<li>Under Run-time Workbench, there should be two new configurations: RCP Text Editor (gtk) and RCP Text Editor (win32). |
| 101 |
|
<li>Edit the appropriate one as follows: |
| 102 |
|
<ul> |
| 103 |
|
<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); |
| 104 |
|
<li>in the Program to Run group, ensure that the application <b>org.eclipse.ui.workbench.rcp.texteditor.application</b> is selected; |
| 105 |
|
<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. |
| 106 |
|
</ul> |
| 107 |
|
<li>Press Debug. |
| 108 |
|
<li>When the RCP Text Editor Example window opens, use File > Open to open a plain text, .xml, or .html file. |
| 109 |
|
</ol> |
| 110 |
|
|
| 111 |
<p> |
<p> |
| 112 |
</p> |
</p> |
| 113 |
</body> |
</body> |