Search in sources :

Example 1 with WizardListener

use of com.biglybt.ui.swt.wizard.WizardListener in project BiglyBT by BiglySoftware.

the class SpeedTestPanel method finish.

@Override
public void finish() {
    test_running = true;
    clListener = new WizardListener() {

        @Override
        public void closed() {
            cancel();
        }
    };
    wizard.addListener(clListener);
    wizard.setFinishEnabled(false);
    // convert to mode
    final int test_mode = NetworkAdminSpeedTester.TEST_TYPES[testCombo.getSelectionIndex()];
    final boolean encState = encryptToggle.getSelection();
    Thread t = new AEThread("SpeedTest Performer") {

        @Override
        public void runSupport() {
            runTest(test_mode, encState);
        }
    };
    t.setPriority(Thread.MIN_PRIORITY);
    t.setDaemon(true);
    t.start();
}
Also used : WizardListener(com.biglybt.ui.swt.wizard.WizardListener) AEThread(com.biglybt.core.util.AEThread) AEThread(com.biglybt.core.util.AEThread)

Aggregations

AEThread (com.biglybt.core.util.AEThread)1 WizardListener (com.biglybt.ui.swt.wizard.WizardListener)1