/* Old Version */
if (StringUtils.isSet(oldVer)) {
int offset = fUpdateInfoTextLeft.getText().length();
fUpdateInfoTextLeft.append(Messages.UpdateDialog_CURRENT_VERSION);
fUpdateInfoTextLeft.setStyleRange(new StyleRange(offset, fUpdateInfoTextLeft.getText().length() - offset, null, null, SWT.BOLD));
fUpdateInfoTextRight.append(oldVer);
fUpdateInfoTextLeft.append("\n"); //$NON-NLS-1$
fUpdateInfoTextRight.append("\n"); //$NON-NLS-1$
}
/* New Version */
if (StringUtils.isSet(newVer)) {
int offset = fUpdateInfoTextLeft.getText().length();
fUpdateInfoTextLeft.append(Messages.UpdateDialog_NEW_VERSION);
fUpdateInfoTextLeft.setStyleRange(new StyleRange(offset, fUpdateInfoTextLeft.getText().length() - offset, null, null, SWT.BOLD));
fUpdateInfoTextRight.append(newVer);
fUpdateInfoTextLeft.append("\n"); //$NON-NLS-1$
fUpdateInfoTextRight.append("\n"); //$NON-NLS-1$
}
/* Provider */
if (StringUtils.isSet(provider)) {
int offset = fUpdateInfoTextLeft.getText().length();
fUpdateInfoTextLeft.append(Messages.UpdateDialog_UPDATE_PROVIDER);
fUpdateInfoTextLeft.setStyleRange(new StyleRange(offset, fUpdateInfoTextLeft.getText().length() - offset, null, null, SWT.BOLD));
fUpdateInfoTextRight.append(provider);
fUpdateInfoTextLeft.append("\n"); //$NON-NLS-1$
fUpdateInfoTextRight.append("\n"); //$NON-NLS-1$
}
/* Size */
if (dlSize > 0) {
int offset = fUpdateInfoTextLeft.getText().length();
fUpdateInfoTextLeft.append(Messages.UpdateDialog_DL_SIZE);
fUpdateInfoTextLeft.setStyleRange(new StyleRange(offset, fUpdateInfoTextLeft.getText().length() - offset, null, null, SWT.BOLD));
fUpdateInfoTextRight.append(OwlUI.getSize((int) dlSize));
fUpdateInfoTextLeft.append("\n"); //$NON-NLS-1$
fUpdateInfoTextRight.append("\n"); //$NON-NLS-1$
}
/* Description */
if (StringUtils.isSet(description)) {
int offset = fUpdateInfoTextBottom.getText().length();
fUpdateInfoTextBottom.append(Messages.UpdateDialog_DESCRIPTION);
fUpdateInfoTextBottom.append("\n"); //$NON-NLS-1$
fUpdateInfoTextBottom.setStyleRange(new StyleRange(offset, fUpdateInfoTextBottom.getText().length() - offset, null, null, SWT.BOLD));
fUpdateInfoTextBottom.append(description);
}
}