{
@Override
public Void call() throws Exception
{
MasterGraph master = new MasterGraph();
for (AddonView view : views.keySet())
{
if (starting.get() == -1)
starting.set(0);
OptimizedAddonGraph graph = new OptimizedAddonGraph(view,
new CompleteAddonGraph(view.getRepositories()).getGraph());
master.merge(graph);
if (logger.isLoggable(Level.FINE))
{
String graphOutput = master.toString();
logger.log(Level.FINE, "\n ------------ VIEW [" + view.getName() + "]------------ "
+ (graphOutput.isEmpty() ? "EMPTY" : graphOutput)
+ " ------------ END [" + view.getName() + "]------------ ");
}
}
MasterGraph last = stateManager.getCurrentGraph();
stateManager.setCurrentGraph(master);
new MasterGraphChangeHandler(AddonLifecycleManager.this, last, master).hotSwapChanges();
return null;