if (!options.load()) {
return;
}
MibewTray tray = new MibewTray();
MibewAgent agent = new MibewAgent(options.getAgentOptions(), tray);
agent.launch();
tray.initTray(display, shell, agent);
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
tray.dispose();
agent.stop();
display.dispose();
System.exit(0);
}