Search in sources :

Example 1 with GCModelLoaderGroupTracker

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;
}
Also used : GCModelLoader(com.tagtraum.perf.gcviewer.ctrl.GCModelLoader) GCResource(com.tagtraum.perf.gcviewer.model.GCResource) GCModelLoaderGroupTracker(com.tagtraum.perf.gcviewer.ctrl.GCModelLoaderGroupTracker)

Aggregations

GCModelLoader (com.tagtraum.perf.gcviewer.ctrl.GCModelLoader)1 GCModelLoaderGroupTracker (com.tagtraum.perf.gcviewer.ctrl.GCModelLoaderGroupTracker)1 GCResource (com.tagtraum.perf.gcviewer.model.GCResource)1