Bug #1359: Initialize the resources when the page is loaded, independently from
the hidden/shown property of the load chart. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
0d96d48197
commit
4b3dc7bc7c
1 changed files with 11 additions and 2 deletions
|
|
@ -842,9 +842,12 @@ public class ResourceLoadController implements Composer {
|
|||
ResourceLoadDisplayData generatedData, TimeTracker timeTracker) {
|
||||
Timeplot chartLoadTimeplot = createEmptyTimeplot();
|
||||
|
||||
ResourceLoadChartFiller chartFiller =
|
||||
new ResourceLoadChartFiller(generatedData);
|
||||
loadChart = new Chart(chartLoadTimeplot,
|
||||
new ResourceLoadChartFiller(generatedData), timeTracker);
|
||||
chartFiller, timeTracker);
|
||||
loadChart.setZoomLevel(timeTracker.getDetailLevel());
|
||||
chartFiller.initializeResources();
|
||||
if (resourcesLoadPanel.isVisibleChart()) {
|
||||
loadChart.fillChart();
|
||||
}
|
||||
|
|
@ -888,6 +891,8 @@ public class ResourceLoadController implements Composer {
|
|||
|
||||
private final ResourceLoadDisplayData generatedData;
|
||||
|
||||
private List<Resource> resources;
|
||||
|
||||
public ResourceLoadChartFiller(ResourceLoadDisplayData generatedData) {
|
||||
this.generatedData = generatedData;
|
||||
}
|
||||
|
|
@ -901,11 +906,15 @@ public class ResourceLoadController implements Composer {
|
|||
protected ILoadChartData getDataOn(Interval interval) {
|
||||
List<DayAssignment> assignments = generatedData
|
||||
.getDayAssignmentsConsidered();
|
||||
List<Resource> resources = generatedData.getResourcesConsidered();
|
||||
return new ResourceLoadChartData(assignments,
|
||||
resources, interval.getStart(), interval.getFinish());
|
||||
}
|
||||
|
||||
private void initializeResources() {
|
||||
resources = generatedData.getResourcesConsidered();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static class ListenerTracker {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue