protected override void AddProperties(PropertyList list, PropertyOptions options)
        {
            list.AddProperty("JVM id", JvmId);
            AccessBridgeVersionInfo versionInfo;

            if (AccessBridge.Functions.GetVersionInfo(JvmId, out versionInfo))
            {
                list.AddProperty("JVM version", versionInfo.VMversion);
                list.AddProperty("AccessBridge.class version", versionInfo.bridgeJavaClassVersion);
                list.AddProperty("JavaAccessBridge.dll version", versionInfo.bridgeJavaDLLVersion);
                list.AddProperty("WindowsAccessBridge.dll version", versionInfo.bridgeWinDLLVersion);
            }
            base.AddProperties(list, options);
        }
示例#2
0
        protected override void AddProperties(PropertyList list, PropertyOptions options)
        {
            list.AddProperty("WindowHandle", _hwnd);
            base.AddProperties(list, options);
            var group = list.AddGroup("Focused element");

            group.LoadChildren = () => {
                int vmid;
                JavaObjectHandle ac;
                if (Failed(AccessBridge.Functions.GetAccessibleContextWithFocus(_hwnd, out vmid, out ac)))
                {
                    group.AddProperty("<Error>", "Error retrieving focused element");
                }
                else
                {
                    AddSubContextProperties(group.Children, options, ac);
                }
            };
        }
 public PropertyNode AddProperty(string name, object value)
 {
     return(_children.AddProperty(name, value));
 }
示例#4
0
 protected override void AddToolTipProperties(PropertyList list, PropertyOptions options)
 {
     base.AddToolTipProperties(list, options);
     list.AddProperty("WindowHandle", _hwnd);
 }