TestVBox.java revision fbdf626f987716e884a585716d5497bc4f1bc9a2
/* $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.*;
{
{
}
{
}
{
}
{
}
{
}
{
}
{
System.out.println("onMediumRegistered -- ID: " + mediumId + ", type=" + mediumType + ", registered: " + registered);
}
{
}
public Boolean onExtraDataCanChange(String machineId, String key, String value, Holder<String> error)
{
return true;
}
{
}
{
}
}
{
{
}
public void onMousePointerShapeChange(Boolean visible, Boolean alpha, Long xHot, Long yHot, Long width, Long height, List<Short> shape)
{
}
public void onMouseCapabilityChange(Boolean supportsAbsolute, Boolean supportsRelative, Boolean needsHostCursor)
{
System.out.println("onMouseCapabilityChange -- VM: " + mach+" abs="+supportsAbsolute+ " rel="+supportsRelative+" need host="+needsHostCursor);
}
{
}
{
}
public void onAdditionsStateChange()
{
}
{
}
{
}
{
}
public void onStorageControllerChange()
{
}
{
}
{
}
public void onVRDPServerChange()
{
}
public void onRemoteDisplayInfoChange()
{
}
public void onUSBControllerChange()
{
}
public void onUSBDeviceStateChange(org.virtualbox_3_3.IUSBDevice device, Boolean attached, org.virtualbox_3_3.IVirtualBoxErrorInfo error)
{
}
{
}
{
}
public Boolean onCanShowWindow()
{
return true;
}
public BigInteger onShowWindow()
{
return BigInteger.ZERO;
}
}
public class TestVBox
{
{
try {
for (int i=0; i<100; i++)
{
}
} catch (Exception e) {
e.printStackTrace();
} finally {
}
}
{
{
}
}
{
}
{
try
{
}
catch (Throwable e)
{
e.printStackTrace();
}
}
}