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 the Eclipse Browser view">
   <intro>
      <description>
         This cheat sheet will demonstrate how to import, modify and test the Eclipse Browser plug-in.
<br/>
<br/>
To learn more about using cheat sheets, click the help button in the top right corner (?).
      </description>
   </intro>
   <item title="Open the Plug-in Development perspective" dialog="false" skip="true" href="/org.eclipse.pde.doc.user/guide/tools/views/views.htm">
      <description>
         To open the plug-in development perspective, select <b>Window->Open Perspective->Other... and choose 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)" confirm="false">
      </command>
   </item>
   <item title="Import the Eclipse Browser plug-in" dialog="true" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/import_wizards/import_plugins.htm">
      <description>
         To import the sample plug-in for this tutorial, perform the following steps:
      </description>
      <subitem label="Select "File->Import..." from the main menu to bring up the Import wizard.  Expand the "Plug-in Development" category, and choose "Plug-ins and Fragments".  Press "Next"." skip="true">
         <command serialization="org.eclipse.ui.file.import(importWizardId=org.eclipse.pde.ui.PluginImportWizard)" confirm="false">
         </command>
      </subitem>
      <subitem label="Select the "Projects with source folders" radio button in the "Import As" section towards the bottom of the page.  Press "Next"." skip="false">
      </subitem>
      <subitem label="Select the "org.eclipse.browser" plug-in in the "Plug-ins and Fragments found" table.  Click the "Add-->" button to move it to the table on the right .  Press "Finish"." 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>
         Expand the <b>org.eclipse.browser project 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 a view extension" dialog="true" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/editors/manifest_editor/extensions.htm">
      <description>
         To define a view 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.ui.views" from the "Extension Points" list box and press "Finish"." skip="false">
      </subitem>
      <subitem label="Right-click on the "org.eclipse.ui.views" node and select "New->view" from the context menu." skip="false">
      </subitem>
      <subitem label="Replace the content of the "id" text box under "Extension Element Details" with "org.eclipse.browser.view"." skip="false">
      </subitem>
      <subitem label="Replace the content of the "name" text box with "Eclipse Browser"." skip="false">
      </subitem>
      <subitem label="Replace the content of the "class" text box with "org.eclipse.browser.view.ui.EclipseBrowserView"." skip="false">
      </subitem>
      <subitem label="Replace the content of the "icon" text box with "icons/eclipse_icon.gif"." skip="false">
      </subitem>
      <subitem label="Select "File->Save" from the main menu." skip="false">
      </subitem>
   </item>
   <item title="Test the plug-in" dialog="false" skip="false" href="/org.eclipse.pde.doc.user/guide/tools/launchers/eclipse_application_launcher.htm">
      <description>
         To test your plug-in, 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 a second instance of Eclipse." skip="false">
      </subitem>
      <subitem label="In the second Eclipse instance, dismiss the Intro by clicking on the "Go to the Workbench" image.  Select "Window->Show View->Other..." from the top level menu." skip="false">
      </subitem>
      <subitem label="Under the "Other" category, select the "Eclipse Browser" view and press OK.  This will open the Eclipse Browser view at the bottom right." skip="false">
      </subitem>
      <subitem label="Drag the Eclipse Browser view and stack it over the Outline view on the left of the workbench window." skip="false">
      </subitem>
      <subitem label="Explore the various sections of the view depicting the structure of the Eclipse Project.  Double-click on links and nodes to open the associated web pages in an embedded browser." skip="false">
      </subitem>
      <subitem label="Select "File->Exit" from the main menu to close the second Eclipse instance." 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.