/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 8 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ package Ġcom . android . tools . idea . gradle . structure . dependencies Ċ Ċ import Ġcom . android . tools . idea . gradle . structure . configur ables . Ps Context Ċ import Ġcom . android . tools . idea . gradle . structure . configur ables . ui . Artifact Repository Search Form Ċ import Ġcom . android . tools . idea . gradle . structure . configur ables . ui . Selection ChangeListener Ċ import Ġcom . android . tools . idea . gradle . structure . configur ables . ui . properties . render To Ċ import Ġcom . android . tools . idea . gradle . structure . configur ables . ui . to Renderer Ċ import Ġcom . android . tools . idea . gradle . structure . model . Ps Module Ċ import Ġcom . android . tools . idea . gradle . structure . model . meta . Parsed Value Ċ import Ġcom . intellij . openapi . Disposable Ċ import Ġjava . awt . Border Layout Ċ import Ġjavax . swing . J Component Ċ import Ġjavax . swing . JPanel Ċ Ċ internal Ġclass ĠLibrary Dependencies Form Ġ( context : ĠP s Context , Ġmodule : ĠP s Module ) Ġ: ĠLibrary Dependencies Form Ui (), ĠDis posable Ġ{ ĊĠ Ġprivate Ġval Ġsearch Form : ĠArtifact Repository Search Form ĊĠ Ġprivate Ġvar Ġselected : ĠParsed Value < String > Ġ= ĠParsed Value . Not Set ĊĊĠ Ġval Ġpreferred Focused Component : ĠJ Component Ġget () Ġ= Ġsearch Form . preferred Focused Component ĊĠ Ġval Ġpanel : ĠJPanel Ġget () Ġ= Ġmy Main Panel ĊĠ Ġval Ġselected Library : ĠParsed Value < String > Ġget () Ġ= Ġselected ĊĠ Ġval Ġsearch Errors : ĠList < Exception > Ġget () Ġ= Ġsearch Form . search Errors ĊĠ Ġval Ġrepositories Ġ= Ġmodule . get Artifact Repositories () ĊĊĠ Ġinit Ġ{ ĊĠĠĠ Ġsearch Form Ġ= ĠArtifact Repository Search Form ( module . variables , Ġcontext . get Artifact Repository Search Service For ( module )) ĊĠĠĠ Ġsearch Form . add ( Selection ChangeListener Ġ{ Ġselected Library Ġ-> ĊĠĠĠĠĠ Ġselected Ġ= Ġselected Library Ġ?: ĠParsed Value . Not Set ĊĠĠĠĠĠ Ġmy Library Label . clear () ĊĠĠĠĠĠ Ġselected Library ?. render To ( my Library Label . to Renderer (), Ġ{ ĠtoString () Ġ}, Ġmap Of ()) ĊĠĠĠ Ġ}, Ġthis ) ĊĠĠĠ Ġmy Search Panel Host . add ( search Form . panel , ĠBorderLayout . CENTER ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġdispose () Ġ= ĠUnit Ċ } Ċ