return null;
return model.getPointInTime(pointInTimeType);
}
protected String getInfoText() {
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);
}
text = tr(
"<html>Version <strong>{0}</strong> created on <strong>{1}</strong></html>",
Long.toString(primitive.getVersion()), date);
}
return text;
}