Source:
<code>private void display(final ChangeDetail detail) { displayTitle(detail.getChange().getKey(), detail.getChange().getSubject()); if (starChange != null) { setStarred(detail.isStarred()); } if (Status.MERGED == detail.getChange().getStatus()) { includedInPanel.setVisible(true); includedInPanel.addOpenHandler(includedInTable); } else { includedInPanel.setVisible(false); } dependencies.setAccountInfoCache(detail.getAccounts()); approvals.setAccountInfoCache(detail.getAccounts()); descriptionBlock.display(detail.getChange(), detail .getCurrentPatchSetDetail().getInfo(), detail.getAccounts()); dependsOn.display(detail.getDependsOn()); neededBy.display(detail.getNeededBy()); codependentWith.display(detail.getCodependentWith()); approvals.display(detail); for (PatchSet pId : detail.getPatchSets()) { if (patchesList != null) { patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId .getId().toString()); } } if (diffBaseId != null && patchesList != null) { patchesList.setSelectedIndex(diffBaseId.get()); } patchSetsBlock.display(detail, diffBaseId); addComments(detail); boolean depsOpen = false; int outdated = 0; if (!detail.getChange().getStatus().isClosed() && detail.getDependsOn() != null) { for (final ChangeInfo ci : detail.getDependsOn()) { if (! ci.isLatest()) { depsOpen = true; outdated++; } else if (ci.getStatus() != Change.Status.MERGED) { depsOpen = true; } } } <START> <END> dependenciesPanel.setOpen(depsOpen); if (outdated > 0) { dependenciesPanel.getHeader().add(new InlineLabel( Util.M.outdatedHeader(outdated))); } }</code><technical_language>I if change is open codependent changes dependencies panel automatically opened / expanded (similar done for open changes depend other merged changes). This user immediately codependent changes</technical_language>

Target:
private void display(final ChangeDetail detail) { displayTitle(detail.getChange().getKey(), detail.getChange().getSubject()); if (starChange != null) { setStarred(detail.isStarred()); } if (Status.MERGED == detail.getChange().getStatus()) { includedInPanel.setVisible(true); includedInPanel.addOpenHandler(includedInTable); } else { includedInPanel.setVisible(false); } dependencies.setAccountInfoCache(detail.getAccounts()); approvals.setAccountInfoCache(detail.getAccounts()); descriptionBlock.display(detail.getChange(), detail .getCurrentPatchSetDetail().getInfo(), detail.getAccounts()); dependsOn.display(detail.getDependsOn()); neededBy.display(detail.getNeededBy()); codependentWith.display(detail.getCodependentWith()); approvals.display(detail); for (PatchSet pId : detail.getPatchSets()) { if (patchesList != null) { patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId .getId().toString()); } } if (diffBaseId != null && patchesList != null) { patchesList.setSelectedIndex(diffBaseId.get()); } patchSetsBlock.display(detail, diffBaseId); addComments(detail); boolean depsOpen = (detail.getCodependentWith() != null); int outdated = 0; if (!detail.getChange().getStatus().isClosed() && detail.getDependsOn() != null) { for (final ChangeInfo ci : detail.getDependsOn()) { if (! ci.isLatest()) { depsOpen = true; outdated++; } else if (ci.getStatus() != Change.Status.MERGED) { depsOpen = true; } } } dependenciesPanel.setOpen(depsOpen); if (outdated > 0) { dependenciesPanel.getHeader().add(new InlineLabel( Util.M.outdatedHeader(outdated))); } }