public boolean settingDetailItem(VMPropertyValue value) {
if (valueLabel != null) {
valueLabel.setText(value.baseImage.getName());
- if (!value.baseImage.isStandard()) {
- valueLabel.setToolTipText(value.baseImage.getPath());
- }
+ valueLabel.setToolTipText(getToolTip(value.baseImage));
}
return true;
}
combo.setVisible(false);
filePathLabel.setText(value.baseImage.getName());
- filePathLabel.setToolTipText(currentBaseImage.getPath());
+ filePathLabel.setToolTipText(getToolTip(currentBaseImage));
filePathLabel.setVisible(true);
filePathLabel.setEnabled(false);
filePathLabel.redraw();
isSelected = true;
}
combo.setEnabled(true);
+ combo.setToolTipText(getToolTip(currentBaseImage));
}
}
String fileSplit[] = pathSplit[pathSplit.length - 1].split("\\."); //$NON-NLS-1$
String extension = fileSplit[fileSplit.length - 1];
- if (!Architecture.isSupported(extension)) { //$NON-NLS-1$
+ if (!Architecture.isSupported(extension)) {
return false;
}
// Check whether file is exist.
return true;
}
+ private String getToolTip(BaseImage image) {
+ if (image == null) {
+ return "";
+ }
+ String toolTip = "Image Version: " + image.getBinaryVersion();
+ if (!image.isStandard()) {
+ toolTip += StringResources.NEW_LINE
+ +"Image Path: " + image.getPath();
+ }
+ return toolTip;
+ }
+
}
\ No newline at end of file