Beispiel #1
0
        public static ActionPrx[] getEventList(
            ProcessI process, WidgetI component)
        {
            loadAssembly();

            // Check which events support the component
            List<ActionPrx> proxies = new List<ActionPrx>();
            foreach (EventMaker maker in makerList)
            {
                if (maker.isSupportedBy(component))
                    proxies.Add(maker.newObject(process, component));
            }
            return proxies.ToArray();
        }
Beispiel #2
0
        public WidgetI(ProcessI process, AutomationElement element)
        {
            this.process = process;
            this.element = element;

            title = element.Current.Name;
            boundingRect = element.Current.BoundingRectangle;
            automationId = element.Current.AutomationId;
            controlType = element.Current.ControlType.ProgrammaticName;

            /* Add this component to the adapter */
            Ice.ObjectPrx base_ = process.register(this);
            proxy = WidgetPrxHelper.uncheckedCast(base_);
        }
Beispiel #3
0
        public override ProcessPrx connect(
            Dictionary<string, string> config, Ice.Current current__)
        {
            if ( !config.ContainsKey("exe") ) {
                throw new InvalidConfiguration("exe property needed");
            }

            string exe = config["exe"];
            string args = "";
            if ( config.ContainsKey("arguments") )
                args = config["arguments"];

            /* Create the process and sleep for the specified delay */
            ProcessI process = new ProcessI(exe, args);

            /* Add this process to the adapter and return it */
            return ProcessPrxHelper.uncheckedCast(
                Adapter.Instance.addWithUUID(process));
        }
Beispiel #4
0
 public ActionPrx newObject(ProcessI process, WidgetI component)
 {
     Ice.ObjectPrx obj = process.register(makeObject(component));
     return ActionPrxHelper.uncheckedCast(obj);
 }
Beispiel #5
0
 public WidgetI(ProcessI process, AutomationElement element,
               WidgetI parent)
     : this(process, element)
 {
     this.parent = parent;
 }