BackgroundTaskQueueManager.getInstance().addTask(task);
task.waitForDone();
}
public void setProperties(final RepositoryEntry re, boolean canCopy, boolean canReference, boolean canLaunch, boolean canDownload ) {
SetPropertiesBackgroundTask task = new SetPropertiesBackgroundTask(re, canCopy, canReference, canLaunch, canDownload);
BackgroundTaskQueueManager.getInstance().addTask(task);
task.waitForDone();
}