<div dir="ltr"><div>Hi!</div><div><br></div><div>Take a look at HostListModel.java, line 721</div><div><br></div><div> public void edit(final boolean isEditWithPMemphasis) {</div><div> if (getWindow() != null) {</div><div> return;</div><div> }</div><div><br></div><div> AsyncDataProvider.getInstance().getDataCenterList(new AsyncQuery<>(dataCenters -> {</div><div> VDS host = getSelectedItem();</div><div><br></div><div> final EditHostModel hostModel = new EditHostModel();</div><div> hostModel.updateModelFromVds(host, dataCenters, isEditWithPMemphasis);</div><div> hostModel.setSelectedCluster(host);</div><div> hostModel.onDataInitialized();</div><div> hostModel.setTitle(ConstantsManager.getInstance().getConstants().editHostTitle());</div><div> hostModel.setHelpTag(HelpTag.edit_host);</div><div> hostModel.setHashName("edit_host"); //$NON-NLS-1$</div><div> hostModel.setIsHeSystem(isHeSystem());</div><div> hostModel.setHostsWithHeDeployed(getHostsWithHeDeployed());</div><div> hostModel.setHostedEngineHostModel(new HostedEngineHostModel());</div><div><br></div><div> setWindow(hostModel);</div><div><br></div><div><br></div><div>See how we have EditHostModel? and then we call setWindow(hostModel). That opens the popup.</div><div><br></div><div>You'll need to do something similar. Perhaps call it "DeployHostModel". The properties that model will have will depend on what you are trying to accomplish.</div><div><br></div><div>This part of the code is complex, and in the future we'd like to simplify it. I hope this gets you started, and feel fee to ask follow-up questions.</div><div><br></div><div>Best wishes,</div><div>Greg</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 4:58 AM, 劉芳 <span dir="ltr"><<a href="mailto:fangng9@163.com" target="_blank">fangng9@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><div>Hi everyone!</div><div><br> Recently I am learning GWT and OVirt. I want to try adding some new function to engine , First, adding a new sub-function buttons under "hosts", as fallow picture 1.<br></div><div><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""> </span></div><div><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""> There is deployment button, then click it I hope popup a new window similar "Remove Host(s)", as fallow picture 2. <br> </span><br><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""> I meet some questions about click deployment Button, can't popup a new window. I tried to set breakpoint step <br><br> debugging use IDE-Intellij and GWT-Development-Mode, with the execution of the code step, the page has't response.<br> <br> Can you tell me how to implement processs of binding events, how to popup a new window. Or how to debug the problem.</span></div></div><div><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""><br></span></div><div><span style="color:rgb(43,43,43);font-family:arial,sans-serif;font-size:18px;font-weight:bold;background-color:rgb(248,248,248)">The process of binding events </span><span style="background-color:rgb(248,248,248);color:rgb(43,43,43);font-family:arial,sans-serif;font-size:18px;font-weight:bold">implement</span></div><div><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""> </span><span style="font-family:"lucida Grande",Verdana,"Microsoft YaHei""><br><br><br>picture 1:<br> <img src="http://mail.163.com/js6/s?func=mbox:getMessageData&sid=*&mid=44:1tbiLAAfUFXlk3Ce6wACsH&part=3" alt="" style="border:0px"><br> <br>picture 2:<br> <img src="http://mail.163.com/js6/s?func=mbox:getMessageData&sid=*&mid=44:1tbiLAAfUFXlk3Ce6wACsH&part=4" alt="" style="border:0px"></span></div></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Greg Sheremeta, MBA<br><span style="font-size:12.8px">Sr. Software Engineer</span><br></div><div>Red Hat, Inc.<br><a href="mailto:gshereme@redhat.com" target="_blank">gshereme@redhat.com</a><br></div></div></div></div></div>
</div>