/** * Ends any active run and informs all listeners. If there is none, nothing * happens. * * @param change the change that triggered ending the active run */ private void endIfStarted(Change change) { if (hasRun()) { ensureSelectionListenerRemoved(); if (DEBUG) System.err.println("-End run"); //$NON-NLS-1$ fireRunEnded(fRun, change.getType()); fRun= null; } }
/** * Ends any active run and informs all listeners. If there is none, nothing * happens. * * @param change the change that triggered ending the active run */ private void endIfStarted(Change change) { if (hasRun()) { ensureSelectionListenerRemoved(); if (DEBUG) System.err.println("-End run"); //$NON-NLS-1$ fireRunEnded(fRun, change.getType()); fRun= null; } }
/** * Ends any active run and informs all listeners. If there is none, nothing * happens. * * @param change the change that triggered ending the active run */ private void endIfStarted(Change change) { if (hasRun()) { ensureSelectionListenerRemoved(); if (DEBUG) System.err.println("-End run"); //$NON-NLS-1$ fireRunEnded(fRun, change.getType()); fRun= null; } }
/** * Starts a new run if there is none and informs all listeners. If there * already is a run, nothing happens. */ private void startOrContinue() { if (!hasRun()) { if (DEBUG) System.err.println("+Start run"); //$NON-NLS-1$ fRun= new TypingRun(fLastChange.getType()); ensureSelectionListenerAdded(); fireRunBegun(fRun); } }
/** * Starts a new run if there is none and informs all listeners. If there * already is a run, nothing happens. */ private void startOrContinue() { if (!hasRun()) { if (DEBUG) System.err.println("+Start run"); //$NON-NLS-1$ fRun= new TypingRun(fLastChange.getType()); ensureSelectionListenerAdded(); fireRunBegun(fRun); } }
/** * Starts a new run if there is none and informs all listeners. If there * already is a run, nothing happens. */ private void startOrContinue() { if (!hasRun()) { if (DEBUG) System.err.println("+Start run"); //$NON-NLS-1$ fRun= new TypingRun(fLastChange.getType()); ensureSelectionListenerAdded(); fireRunBegun(fRun); } }