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" ?>

<!-- Simple Cheat Sheet -->

<cheatsheet title="Customize a product">

   <!-- Introduction -->

   <intro href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm">
      <description>
         This cheat sheet will demonstrate how to add window images,
         add a splash screen and customize a launcher for an RCP
         application using PDE.  
         <br/>
         <br/>
         To learn more about using cheat sheets, click the help button
         in the top right corner (?). 
      </description>
   </intro>

   <!-- Item -->

   <item title="Open the plug-in development perspective"
         href="/org.eclipse.pde.doc.user/guide/tools/views/views.htm"
         dialog="false"
         skip="false">
      <description>
         To open the plug-in development perspective,
         select <b>Window->Open Perspective->Other... 
         and choose <b>Plug-in Development.
         <br/>
         <br/>
         Alternatively, click the following button to perform the task.
      </description>
      <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.pde.ui.PDEPerspective)" required="false" translate="" />
   </item>

   <!-- Item -->

   <item title="Open the product editor"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/editor.htm"
         dialog="false"
         skip="false">
      <description>
         To open the product editor (if it is not already open),
         expand the <b>com.example.rcpapp tree dialog
         in the <b>Package Explorer view and double-click
         on the <b>rcpapp.product file (the Overview page
         should be open initially).
         <br/>
         <br/>
         Alternatively, click the following button to perform the task.         
      </description>
      <command serialization="org.eclipse.ui.navigate.openResource(filePath=/com.example.rcpapp/rcpapp.product)" required="false" translate="" />
   </item>

   <!-- Item -->

   <item title="Add window images"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/branding.htm"
         dialog="true"
         skip="false">
      <description>
         To add window images, perform the following steps:
      </description>
      <subitem label="Select the "Branding" tab within the product editor to display the "Branding" page" 
               skip="false"/>
      <subitem label="Click the "Browse" button adjacent to the "16x16" text box under the "Window Images" heading" 
               skip="false"/>
      <subitem label="Fully expand the "com.example.rcpapp" tree in the "Image Selection" dialog box and select "alt_window_16.gif" and click "OK"" 
               skip="false"/>
      <subitem label="Click the "Browse" button adjacent to the "32x32" text box under the "Window Images" heading" 
               skip="false"/>  
      <subitem label="Fully expand the "com.example.rcpapp" tree in the "Image Selection" dialog box and select "alt_window_32.gif" and click "OK"" 
               skip="false"/>
      <subitem label="Select "File->Save" from the main menu" 
               skip="false"/> 
   </item>   

   <!-- Item -->

   <item title="Test the RCP product"
         dialog="false"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/overview.htm"
         skip="false">
      <description>
         To test the RCP product,
         perform the following steps:
      </description>
      <subitem label="Select the "Overview" tab within the product editor to display the "Overview" page" 
               skip="false"/>      
      <subitem label="Click the "Launch an Eclipse Application" hyperlink under the "Testing" heading" 
               skip="false"/>
      <subitem label="Note the image in the window title bar (if applicable on your platform)" 
               skip="true"/>
      <subitem label="Exit the RCP application" 
               skip="false"/>
   </item>

   <!-- Item -->

   <item title="Add a splash screen"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/splash.htm"
         dialog="true"
         skip="false">
      <description>
         To add a splash screen, perform the following steps:
      </description>
      <subitem label="Select the "Splash" tab within the product editor to display the "Splash" page" 
               skip="false"/>      
      <subitem label="Click the "Browse..." button adjacent to the "Plug-in" text box under the "Location" heading" 
               skip="false"/>
      <subitem label="Select the "com.example.rcpapp" entry in the "Plug-in Selection" dialog box and click "OK"" 
               skip="true"/>
      <subitem label="Select "File->Save" from the main menu" 
               skip="false"/>
      <subitem label="Note:  Eclipse expects a file called "splash.bmp" to be located in the root of the specified plug-in" 
               skip="true"/>
      <subitem label="Locate the "splash.bmp" file located in the "icons" directory under the "com.example.rcpapp" project within the "Package Explorer view"" 
               skip="false"/>                
      <subitem label="Right-click on the "splash.bmp" file and select "Refactor->Move..." from the context menu" 
               skip="false"/>                
      <subitem label="Select "com.example.rcpapp" from the "Move" dialog box and click "OK"" 
               skip="false"/>   
   </item>   

   <!-- Item -->

   <item title="Test the RCP product"
         dialog="false"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/overview.htm"
         skip="false">
      <description>
         To test the RCP product,
         perform the following steps:
      </description>
      <subitem label="Select the "Overview" tab within the product editor to display the "Overview" page" 
               skip="false"/>      
      <subitem label="Click the "Launch an Eclipse Application" hyperlink under the "Testing" heading" 
               skip="false"/>
      <subitem label="Note the splash screen displayed before the RCP application window is visible" 
               skip="true"/>
      <subitem label="Exit the RCP application" 
               skip="false"/>
   </item>

   <!-- Item -->

   <item title="Customize the launcher"
         href="/org.eclipse.pde.doc.user/guide/tools/editors/product_editor/launcher.htm"
         dialog="true"
         skip="false">
      <description>
         We will walk through this task assuming we are working on a Windows
         platform (Similar steps may be followed for other platforms).
         <br/>
         <br/>
         To customize the launcher, perform the following steps:
      </description>
      <subitem label="Select the "Launcher" tab within the product editor to display the "Launcher" page" 
               skip="false"/>
      <subitem label="Input "rcpapp" into the "Launcher Name" text box under the "Program Launcher" heading" 
               skip="false"/>
      <subitem label="Select the "win32" tab under the "Program Launcher" heading" 
               skip="true"/>
      <subitem label="Select the "Use a single ICO file containing 7 images as specified above" radio button" 
               skip="true"/>
      <subitem label="Click the "Browse..." button adjacent to the "File" text box" 
               skip="true"/>
      <subitem label="Fully expand the "com.example.rcpapp" tree in the "Image Selection" dialog box and select "alt_launcher.ico" and click "OK"" 
               skip="true"/>
      <subitem label="Select "File->Save" from the main menu" 
               skip="false"/> 
   </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.