Source:
<code>public void edit(final VolumeProfileStatisticsModel object) { driver.edit(object); volumeProfileStats.asEditor().edit(object.getCumulativeStatistics()); nfsServerProfileStats.asEditor().edit(object.getNfsServerProfileStats()); profileRunTime.setText(object.getProfileRunTime()); nfsProfileRunTime.setText(object.getNfsProfileRunTime()); bytesRead.setText(object.getBytesRead()); nfsBytesRead.setText(object.getNfsBytesRead()); bytesWritten.setText(object.getBytesWritten()); nfsBytesWritten.setText(object.getNfsBytesWritten()); ClickHandler brickTabClickHandler = event -> object.queryBackend(false); brickRefreshIcon.setRefreshIconClickListener(brickTabClickHandler); <START> ClickHandler nfsTabClickHandler = event -> object.queryBackend(false); <END> nfsRefreshIcon.setRefreshIconClickListener(nfsTabClickHandler); object.getPropertyChangedEvent().addListener((ev, sender, args) -> { if (args.propertyName.equals("brickProfileRunTimeChanged")) { profileRunTime.setText(object.getProfileRunTime()); } if (args.propertyName.equals("brickProfileDataRead")) { bytesRead.setText(object.getBytesRead()); } if (args.propertyName.equals("brickProfileDataWritten")) { bytesWritten.setText(object.getBytesWritten()); } if (args.propertyName.equals("nfsProfileRunTimeChanged")) { nfsProfileRunTime.setText(object.getNfsProfileRunTime()); } if (args.propertyName.equals("nfsProfileDataRead")) { nfsBytesRead.setText(object.getNfsBytesRead()); } if (args.propertyName.equals("nfsProfileDataWritten")) { nfsBytesWritten.setText(object.getNfsBytesWritten()); } if(args.propertyName.equals("statusOfFetchingProfileStats")) { boolean disableErrorLabels = !object.isSuccessfulProfileStatsFetch(); if(!disableErrorLabels) { String url = object.getProfileExportUrl(); boolean isBrickTabSelected = !url.contains(";nfsStatistics=true"); initAnchor(url, isBrickTabSelected ? brickProfileAnchor : nfsProfileAnchor); } bricksError.setVisible(disableErrorLabels); nfsError.setVisible(disableErrorLabels); } }); }</code><technical_language>this true then</technical_language>

Target:
public void edit(final VolumeProfileStatisticsModel object) { driver.edit(object); volumeProfileStats.asEditor().edit(object.getCumulativeStatistics()); nfsServerProfileStats.asEditor().edit(object.getNfsServerProfileStats()); profileRunTime.setText(object.getProfileRunTime()); nfsProfileRunTime.setText(object.getNfsProfileRunTime()); bytesRead.setText(object.getBytesRead()); nfsBytesRead.setText(object.getNfsBytesRead()); bytesWritten.setText(object.getBytesWritten()); nfsBytesWritten.setText(object.getNfsBytesWritten()); ClickHandler brickTabClickHandler = event -> object.queryBackend(true); brickRefreshIcon.setRefreshIconClickListener(brickTabClickHandler); ClickHandler nfsTabClickHandler = event -> object.queryBackend(false); nfsRefreshIcon.setRefreshIconClickListener(nfsTabClickHandler); object.getPropertyChangedEvent().addListener((ev, sender, args) -> { if (args.propertyName.equals("brickProfileRunTimeChanged")) { profileRunTime.setText(object.getProfileRunTime()); } if (args.propertyName.equals("brickProfileDataRead")) { bytesRead.setText(object.getBytesRead()); } if (args.propertyName.equals("brickProfileDataWritten")) { bytesWritten.setText(object.getBytesWritten()); } if (args.propertyName.equals("nfsProfileRunTimeChanged")) { nfsProfileRunTime.setText(object.getNfsProfileRunTime()); } if (args.propertyName.equals("nfsProfileDataRead")) { nfsBytesRead.setText(object.getNfsBytesRead()); } if (args.propertyName.equals("nfsProfileDataWritten")) { nfsBytesWritten.setText(object.getNfsBytesWritten()); } if(args.propertyName.equals("statusOfFetchingProfileStats")) { boolean disableErrorLabels = !object.isSuccessfulProfileStatsFetch(); if(!disableErrorLabels) { String url = object.getProfileExportUrl(); boolean isBrickTabSelected = !url.contains(";nfsStatistics=true"); initAnchor(url, isBrickTabSelected ? brickProfileAnchor : nfsProfileAnchor); } bricksError.setVisible(disableErrorLabels); nfsError.setVisible(disableErrorLabels); } }); }