/** * Suspends the update manager. */ public synchronized void suspend() { // System.err.println("Suspend: " + suspendCalled + " : " + running); if (updateRunnableQueue.getQueueState() == RunnableQueue.RUNNING) { updateRunnableQueue.suspendExecution(false); } suspendCalled = true; }
/** * Suspends the update manager. */ public synchronized void suspend() { // System.err.println("Suspend: " + suspendCalled + " : " + running); if (updateRunnableQueue.getQueueState() == RunnableQueue.RUNNING) { updateRunnableQueue.suspendExecution(false); } suspendCalled = true; }
/** * Suspends the update manager. */ public synchronized void suspend() { // System.err.println("Suspend: " + suspendCalled + " : " + running); if (updateRunnableQueue.getQueueState() == RunnableQueue.RUNNING) { updateRunnableQueue.suspendExecution(false); } suspendCalled = true; }
/** * Resumes the update manager. */ public synchronized void resume() { // System.err.println("Resume: " + suspendCalled + " : " + running); // if (suspendCalled) { // UpdateManagerEvent ev = new UpdateManagerEvent // (this, null, null); // // FIXX: Must happen in a different thread! // fireEvent(suspendedDispatcher, ev); // fireEvent(resumedDispatcher, ev); // } if (updateRunnableQueue.getQueueState() != RunnableQueue.RUNNING) { updateRunnableQueue.resumeExecution(); } }
/** * Resumes the update manager. */ public synchronized void resume() { // System.err.println("Resume: " + suspendCalled + " : " + running); // if (suspendCalled) { // UpdateManagerEvent ev = new UpdateManagerEvent // (this, null, null); // // FIXX: Must happen in a different thread! // fireEvent(suspendedDispatcher, ev); // fireEvent(resumedDispatcher, ev); // } if (updateRunnableQueue.getQueueState() != RunnableQueue.RUNNING) { updateRunnableQueue.resumeExecution(); } }
/** * Resumes the update manager. */ public synchronized void resume() { // System.err.println("Resume: " + suspendCalled + " : " + running); // if (suspendCalled) { // UpdateManagerEvent ev = new UpdateManagerEvent // (this, null, null); // // FIXX: Must happen in a different thread! // fireEvent(suspendedDispatcher, ev); // fireEvent(resumedDispatcher, ev); // } if (updateRunnableQueue.getQueueState() != RunnableQueue.RUNNING) { updateRunnableQueue.resumeExecution(); } }