Navigation


Win32 Explorer Eclipse Plugin Sample

A sample eclipse plugin that uses the windows Shell automation type library to provide a Win32 explorer view. This sample demonstrates how utilise SWTtoCOM in an Eclipse plugin.

SWTtoCOM Win32 Explorer Eclipse Plugin Sample

Building and Running the sample

Before building the samples you need to have the following software;

  1. Eclipse 3.2 or later. Download from http://www.eclipse.org/downloads/
  2. SWT 3.2 or later. Download from http://www.eclipse.org/swt/

SWTtoCOM only needs SWT at runtime, however these samples also make use of other Eclipse based libraries such as JFace.

Instructions for building and running the samples are available with the following methods;

Once you have the sample running, try right clicking an option in the view and note that the menu that appears is context sensitive. The menu is created by interogating the Shell component for a list of valid options for the selection

Using the sample

  1. Once the sample is running and the Eclipse workbench is displayed. Select Window > Show View > Other... > Win32 Explorer > Win32 Explorer View.
    Select the view
  2. Open a namespace by selecting the namespace menu dropdown button at the top of the view.
    SWTtoCOM Win32 Explorer Eclipse Plugin Sample
  3. Try right clicking an option in the view and note that the menu that appears is context sensitive. The menu is created by interogating the Shell component for a list of valid options for the selection.