alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title="Create an RCP application">
   <intro>
      <description>
         This tutorial will demonstrate how to turn the Eclipse Browser plug-in into a minimal RCP application.
<br/>
<br/>
To learn more about using cheat sheets, click the help button in the top right corner (?).
      </description>
   </intro>
   <item title="Copy the Application class" dialog="true" skip="false">
      <description>
         The Application class is the entry point to the RCP application.  It has already been implemented for you.  To copy it, perform the following steps:
      </description>
      <subitem label="Expand the "org.eclipse.browser/solutions/PartIII" folder." skip="false">
      </subitem>
      <subitem label="If you are using Eclipse 3.3, select the 'Application.java' file inside that folder.  Otherwise, select the 'Application.java' in the nested 3.2 folder." skip="false">
      </subitem>
      <subitem label="Right-click on the Application.java file and select 'Copy' from the context menu." skip="false">
      </subitem>
      <subitem label="Right-click on the "org.eclipse.browser.application" package under 'org.eclipse.browser/src' and select "Paste" from the context menu." skip="false">
      </subitem>
   </item>
   <item title="Open the plug-in manifest editor" dialog="false" skip="true" href="/org.eclipse.pde.doc.user/guide/tools/editors/manifest_editor/editor.htm">
      <description>
         To open the plug-in manifest editor (if it is not already open), expand the <b>org.eclipse.browser tree in the Package Explorer view and double-click on the plugin.xml file.
<br/>
<br/>
Alternatively, click the following button to perform the task:
      </description>
      <command serialization="org.eclipse.ui.navigate.openResource(filePath=/org.eclipse.browser/plugin.xml)" confirm="false">
      </command>
   </item>
   <item title="Define an application extension" dialog="true" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/editors/manifest_editor/extensions.htm">
      <description>
         To define an application extension, perform the following steps:
      </description>
      <subitem label="On the "Extensions" page of the plug-in manifest editor, press the "Add..." button to open the "New Extension" wizard." skip="false">
      </subitem>
      <subitem label="Select "org.eclipse.core.runtime.applications" from the "Extension Points" list box and press "Finish"." skip="false">
      </subitem>
      <subitem label="Make sure the 'org.eclipse.core.runtime.applications' node is selected in the 'All Extensions' viewer." skip="false">
      </subitem>
      <subitem label="In the "Extension Details" section, set the contents of the "ID" field to "application"" skip="false">
      </subitem>
      <subitem label="(3.2 Only) Right-click on the "org.eclipse.core.runtime.applications" node in the "All Extensions" section and select "New->application" from the context menu." skip="true">
      </subitem>
      <subitem label="Right-click on the "(application)" node in the "All Extensions" section and select "New->run" from the context menu." skip="false">
      </subitem>
      <subitem label="Replace the content of the "class" text box with "org.eclipse.browser.application.Application"." skip="false">
      </subitem>
      <subitem label="Select "File->Save" from the main menu." skip="false">
      </subitem>
   </item>
   <item title="Run the application" dialog="false" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/launchers/eclipse_application_launcher.htm">
      <description>
         To run the RCP application,  perform the following steps:
      </description>
      <subitem label="On the "Overview" page of the plug-in manifest editor, click the "Launch an Eclipse application" hyperlink under the "Testing" heading to launch the RCP application." skip="false">
      </subitem>
      <subitem label="Note the standalone window containing File and Help menus, and the Eclipse Browser view occupies the entire window area.  This is your minimal RCP application." skip="false">
      </subitem>
      <subitem label="Select "File->Exit" from the main menu to exit the application." skip="false">
      </subitem>
   </item>
</cheatsheet>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.