ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #452] Avoid refill the chart when listener called outside of the execution.
This commit is contained in:
parent
561f28dc45
commit
23e40972fd
1 changed files with 7 additions and 0 deletions
|
|
@ -671,6 +671,9 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
IOnMoveListener.class, new IOnMoveListener() {
|
||||
@Override
|
||||
public void moved(TaskElement taskElement) {
|
||||
if (isExecutingOutsideZKExecution()) {
|
||||
return;
|
||||
}
|
||||
if (planner.isVisibleChart()) {
|
||||
loadChart.fillChart();
|
||||
}
|
||||
|
|
@ -687,6 +690,10 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
}));
|
||||
}
|
||||
|
||||
private boolean isExecutingOutsideZKExecution() {
|
||||
return Executions.getCurrent() == null;
|
||||
}
|
||||
|
||||
private void addAdditional(List<ICommand<TaskElement>> additional,
|
||||
PlannerConfiguration<TaskElement> configuration) {
|
||||
for (ICommand<TaskElement> c : additional) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue