HistoryOsmPrimitive primitive = getPrimitive();
if (primitive == null)
return "";
String text;
if (model.isLatest(primitive)) {
OsmDataLayer editLayer = Main.main.getEditLayer();
text = tr("<html>Version <strong>{0}</strong> currently edited in layer ''{1}''</html>",
Long.toString(primitive.getVersion()),
editLayer == null ? tr("unknown") : editLayer.getName()
);
} else {
String date = "?";
if (primitive.getTimestamp() != null) {
date = DateUtils.formatDateTime(primitive.getTimestamp(), DateFormat.SHORT, DateFormat.SHORT);