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();
}
Aggregations