*/
public void initialize(java.lang.Object[] arguments) {
try {
// FIXME: Currently there is no way to determine if key event forwarding is needed or not,
// so we have to do it always ..
XExtendedToolkit unoToolkit = (XExtendedToolkit) AnyConverter.toObject(new Type(
XExtendedToolkit.class), arguments[0]);
if (unoToolkit != null) {
// FIXME this should be done in VCL
unoToolkit.addTopWindowListener(this);
String os = (String) System.getProperty("os.name");
// Try to initialize the WindowsAccessBridgeAdapter
if (os.startsWith("Windows")) {
WindowsAccessBridgeAdapter.attach(xComponentContext);
} else {
unoToolkit.addKeyHandler(new KeyHandler());
}
} else if (Build.DEBUG) {
System.err.println(
"argument 0 is not of type XExtendedToolkit.");
}