*
* @param id the primitive id
* @param type The primitive type. Must be one of {@link OsmPrimitiveType#NODE NODE}, {@link OsmPrimitiveType#WAY WAY}, {@link OsmPrimitiveType#RELATION RELATION}
*/
public static void handlePrimitiveGoneException(long id, OsmPrimitiveType type) {
MultiFetchServerObjectReader reader = new MultiFetchServerObjectReader();
reader.append(getCurrentDataSet(), id, type);
try {
DataSet ds = reader.parseOsm(NullProgressMonitor.INSTANCE);
Main.main.getEditLayer().mergeFrom(ds);
} catch(Exception e) {
ExceptionDialogUtil.explainException(e);
}
}