App
MergeAllCommand.java
Go to the documentation of this file.
1 package mhr.appcore.commands.imagecommands;
2 
3 import mhr.appcore.AppCore;
4 import mhr.appcore.commands.AppCommand;
5 
9 public class MergeAllCommand extends AppCommand {
10 
11 
15  public MergeAllCommand() {
16  }
17 
18  @Override
19  protected void action(AppCore target) {
20  synchronized (this) {
21  target.getRenderer().susepnd(this);
22  try {
23  this.wait();
24  } catch (InterruptedException e) {
25 
26  }
27  try {
28  target.getImg().mergeAll();
29  } finally {
30  target.getRenderer().wake(this);
31  }
32  }
33  }
34 }