com.webcodepro.applecommander.ui.swt
Class SwtAppleCommander

java.lang.Object
  extended by com.webcodepro.applecommander.ui.swt.SwtAppleCommander
All Implemented Interfaces:
org.eclipse.swt.widgets.Listener

public class SwtAppleCommander
extends java.lang.Object
implements org.eclipse.swt.widgets.Listener

Main class for the SwtAppleCommander interface.

Date created: Oct 7, 2002 9:43:37 PM

Author:
Rob Greene

Constructor Summary
SwtAppleCommander()
          Constructor for SwtAppleCommander.
 
Method Summary
 void compareDiskImages()
          Start the compare disks wizard.
protected  void createDiskImage()
          Create a disk image.
protected  void dispose(org.eclipse.swt.events.DisposeEvent event)
          Dispose of all shared resources.
 void handleEvent(org.eclipse.swt.widgets.Event event)
           
 void launch()
          Launch SwtAppleCommander.
 void launch(org.eclipse.swt.widgets.Display display)
          Launch SwtAppleCommander with a given display.
static void main(java.lang.String[] args)
          Launch SwtAppleCommander.
protected  org.eclipse.swt.widgets.Shell open(org.eclipse.swt.widgets.Display display)
          Opens the main program.
protected  void openFile()
          Open a file.
 void showAboutAppleCommander()
           
protected  void showUnrecognizedDiskFormatMessage(java.lang.String fullpath)
          Displays the unrecognized disk format message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtAppleCommander

public SwtAppleCommander()
Constructor for SwtAppleCommander.

Method Detail

main

public static void main(java.lang.String[] args)
Launch SwtAppleCommander.


launch

public void launch()
Launch SwtAppleCommander.


launch

public void launch(org.eclipse.swt.widgets.Display display)
Launch SwtAppleCommander with a given display. Primary motivation is getting S-Leak to work!


open

protected org.eclipse.swt.widgets.Shell open(org.eclipse.swt.widgets.Display display)
Opens the main program.


dispose

protected void dispose(org.eclipse.swt.events.DisposeEvent event)
Dispose of all shared resources.


openFile

protected void openFile()
Open a file.


showUnrecognizedDiskFormatMessage

protected void showUnrecognizedDiskFormatMessage(java.lang.String fullpath)
Displays the unrecognized disk format message.

Parameters:
fullpath -

createDiskImage

protected void createDiskImage()
Create a disk image.


showAboutAppleCommander

public void showAboutAppleCommander()

handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event event)
Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener

compareDiskImages

public void compareDiskImages()
Start the compare disks wizard. The result of the comparison is actually shown in the wizard, so this code is real simple.