public boolean isKeyWindow;
public boolean isOnKbd;
private PopupMenu popupMenu;
+ private Timer closeTimer;
public Color colorVM;
private KeyWindowKeeper keyWindowKeeper;
this.isOnInterpolation = true;
this.isOnKbd = false;
this.isKeyWindow = false;
+ this.closeTimer = new Timer();
int style = SWT.NO_TRIM | SWT.DOUBLE_BUFFERED;
this.shell = new Shell(Display.getDefault(), style);
logger.info("Main Window is closed");
if (isShutdownRequested) {
+ closeTimer.cancel();
removeShellListeners();
removeCanvasListeners();
* sleep function. So, we need a bigger value than
* that.
*/
- new Timer().schedule(new TimerTask() {
+ closeTimer.schedule(new TimerTask() {
@Override
public void run() {
demanderFlag.set(false);