Mosaic m = (Mosaic) data;
if (m.getTimeMode() != TimeMode.NONE) {
//set up the time dimension object
for (ImportTask task : tasks) {
DimensionInfo dim = new DimensionInfoImpl();
dim.setEnabled(true);
dim.setAttribute("time");
dim.setPresentation(DimensionPresentation.LIST);
dim.setUnits("ISO8601"); //TODO: is there an enumeration for this?
ResourceInfo r = task.getLayer().getResource();
r.getMetadata().put(ResourceInfo.TIME, dim);
}
}