Sleak now works.

This commit is contained in:
Robert Greene 2004-06-19 21:14:21 +00:00
parent d83d8dfbd8
commit c9a15b0261

View File

@ -6,7 +6,6 @@ package com.webcodepro.applecommander.ui.swt;
* http://www.eclipse.org/legal/cpl-v10.html * http://www.eclipse.org/legal/cpl-v10.html
*/ */
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream; import java.io.PrintStream;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
@ -31,8 +30,6 @@ import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Text;
import com.webcodepro.applecommander.ui.AppleCommander;
/** /**
* Instructions on how to use the Sleak tool with a standlaone SWT example: * Instructions on how to use the Sleak tool with a standlaone SWT example:
* *
@ -61,14 +58,9 @@ public static void main (String [] args) {
Sleak sleak = new Sleak (); Sleak sleak = new Sleak ();
sleak.open (); sleak.open ();
// Launch you application here // Launch your application here
try { SwtAppleCommander ac = new SwtAppleCommander();
AppleCommander.main(null); ac.launch(display);
} catch (IOException e) {
e.printStackTrace();
}
// SwtAppleCommander ac = new SwtAppleCommander();
// ac.launch();
// End of AC code... // End of AC code...
while (!sleak.shell.isDisposed ()) { while (!sleak.shell.isDisposed ()) {