// ĠCopyright Ġ 2 0 0 0 - 2 0 1 8 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġorg . jetbrains . plugins . github . pull request . ui Ċ Ċ import Ġcom . intellij . openapi . Disposable Ċ import Ġcom . intellij . ui . One Pixel Splitter Ċ import Ġorg . jetbrains . plugins . github . pull request . data . Github PullRequest DataProvider Ċ import Ġorg . jetbrains . plugins . github . pull request . ui . details . Github PullRequest Details Component Ċ Ċ internal Ġclass ĠGithub PullRequest Preview Component ( private Ġval Ġchanges : ĠGithub PullRequest Changes Component , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġdetails : ĠGithub PullRequest Details Component ) ĊĠ Ġ: ĠOne Pixel Splitter (" Github . PullRequest . Preview . Component ", Ġ 0 . 5 f ), ĠDis posable Ġ{ ĊĊĠ Ġprivate Ġvar Ġcurrent Provider : ĠGithub PullRequest DataProvider ? Ġ= Ġnull ĊĊĠ Ġprivate Ġval Ġrequest Changes Listener Ġ= Ġobject Ġ: ĠGithub PullRequest DataProvider . Requests Changed Listener Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġdetails Request Changed () Ġ{ ĊĠĠĠĠĠ Ġdetails . load AndUpdate ( current Provider !!. details Request ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġchanges Request Changed () Ġ{ ĊĠĠĠĠĠ Ġchanges . load AndUpdate ( current Provider !!. changes Request ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġinit Ġ{ ĊĠĠĠ Ġfirst Component Ġ= Ġdetails ĊĠĠĠ Ġsecond Component Ġ= Ġchanges ĊĠ Ġ} ĊĊĠ Ġfun Ġset Preview DataProvider ( provider : ĠGithub PullRequest DataProvider ?) Ġ{ ĊĠĠĠ Ġcurrent Provider ?. remove Requests Changes Listener ( request Changes Listener ) ĊĠĠĠ Ġcurrent Provider Ġ= Ġprovider ĊĠĠĠ Ġcurrent Provider ?. add Requests Changes Listener ( request Changes Listener ) ĊĊĠĠĠ Ġchanges . load And Show ( provider ?. changes Request ) ĊĠĠĠ Ġdetails . load And Show ( provider ?. details Request ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġdispose () Ġ{} Ċ } Ċ