Search in sources :

Example 1 with UIFunctionsImpl

use of com.biglybt.ui.swt.shells.main.UIFunctionsImpl in project BiglyBT by BiglySoftware.

the class OpenTorrentWindow method main.

public static void main(String[] args) {
    Core core = CoreFactory.create();
    core.start();
    UIConfigDefaultsSWT.initialize();
    // try {
    // SWTThread.createInstance(null);
    // } catch (SWTThreadAlreadyInstanciatedException e) {
    // e.printStackTrace();
    // }
    Display display = Display.getDefault();
    Colors.getInstance();
    COConfigurationManager.setParameter("User Mode", 2);
    UIFunctionsImpl uiFunctions = new UIFunctionsImpl(null);
    UIFunctionsManager.setUIFunctions(uiFunctions);
    // invoke(null, core.getGlobalManager());
    OpenTorrentWindow window = new OpenTorrentWindow(null);
    while (!window.isDisposed()) {
        if (!display.readAndDispatch())
            display.sleep();
    }
    core.stop();
}
Also used : UIFunctionsImpl(com.biglybt.ui.swt.shells.main.UIFunctionsImpl) Core(com.biglybt.core.Core)

Aggregations

Core (com.biglybt.core.Core)1 UIFunctionsImpl (com.biglybt.ui.swt.shells.main.UIFunctionsImpl)1