map.put(entry.getKey(), entry.getValue());
i++;
if (i == _messageBufferSize) {
NativityMessage message = new NativityMessage(
Constants.SET_FILE_ICONS, map);
nativityControl.sendMessage(message);
map.clear();
i = 0;
}
}
if (i > 0) {
NativityMessage message = new NativityMessage(
Constants.SET_FILE_ICONS, map);
nativityControl.sendMessage(message);
}
}