TestVBox.java revision efda5c4c4db213abd0692df0ea34a26f6230d59a
/* $Id:$ */
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
import org.virtualbox_3_3.*;
public class TestVBox
{
{
switch (type)
{
case OnMachineStateChanged:
else
break;
}
}
static class EventHandler
{
EventHandler() {}
{
try {
} catch (Throwable t) {
t.printStackTrace();
}
}
}
{
// active mode for Java doesn't fully work yet, and using passive
// is more portable (the only mode for MSCOM and WS) and thus generally
// recommended
try {
for (int i=0; i<100; i++)
{
if (active)
{
}
else
{
{
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
{
{
}
}
{
}
{
boolean ws = false;
{
ws = true;
}
if (ws)
{
try {
} catch (Exception e) {
e.printStackTrace();
}
}
try
{
}
catch (Throwable e)
{
e.printStackTrace();
}
if (ws)
{
try {
mgr.disconnect();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}