* @param ids List of primitive id to download
* @param downloadReferrers if the referrers of the object should be downloaded as well, i.e., parent relations, and for nodes, additionally, parent ways
* @param full if the members of a relation should be downloaded as well
*/
public static void processItems(boolean newLayer, final List<PrimitiveId> ids, boolean downloadReferrers, boolean full) {
final DownloadPrimitivesWithReferrersTask task =
new DownloadPrimitivesWithReferrersTask(newLayer, ids, downloadReferrers, full, null);
Main.worker.submit(task);
Main.worker.submit(new Runnable() {
@Override
public void run() {
final List<PrimitiveId> downloaded = task.getDownloadedId();
if(downloaded != null) {
GuiHelper.runInEDT(new Runnable() {
@Override
public void run() {
Main.main.getCurrentDataSet().setSelected(downloaded);