use of com.tagtraum.perf.gcviewer.ctrl.GCModelLoaderGroupTracker in project GCViewer by chewiebug.
the class GCModelLoaderControllerImpl method reload.
@Override
public GCModelLoaderGroupTracker reload(GCDocument gcDocument) {
GCModelLoaderGroupTracker tracker = new GCModelLoaderGroupTrackerImpl();
for (GCResource gcResource : gcDocument.getGCResources()) {
if (gcResource.hasUnderlyingResourceChanged()) {
gcResource.reset();
gcResource.setIsReload(true);
GCModelLoader loader = GCModelLoaderFactory.createFor(gcResource);
GCDocumentController docController = getDocumentController(gcDocument);
docController.reloadGCResource(loader);
tracker.addGcModelLoader(loader);
}
}
tracker.execute();
return tracker;
}
Aggregations