/** * State machine. Changes state given the current state and the incoming * change. * * @param change the incoming change */ private void handleChange(Change change) { if (change.getType() == TypingRun.NO_CHANGE) return; if (DEBUG) System.err.println("Last change: " + fLastChange); //$NON-NLS-1$ if (!change.canFollow(fLastChange)) endIfStarted(change); fLastChange= change; if (change.isModification()) startOrContinue(); if (DEBUG) System.err.println("New change: " + change); //$NON-NLS-1$ }
/** * State machine. Changes state given the current state and the incoming * change. * * @param change the incoming change */ private void handleChange(Change change) { if (change.getType() == TypingRun.NO_CHANGE) return; if (DEBUG) System.err.println("Last change: " + fLastChange); //$NON-NLS-1$ if (!change.canFollow(fLastChange)) endIfStarted(change); fLastChange= change; if (change.isModification()) startOrContinue(); if (DEBUG) System.err.println("New change: " + change); //$NON-NLS-1$ }
/** * State machine. Changes state given the current state and the incoming * change. * * @param change the incoming change */ private void handleChange(Change change) { if (change.getType() == TypingRun.NO_CHANGE) return; if (DEBUG) System.err.println("Last change: " + fLastChange); //$NON-NLS-1$ if (!change.canFollow(fLastChange)) endIfStarted(change); fLastChange= change; if (change.isModification()) startOrContinue(); if (DEBUG) System.err.println("New change: " + change); //$NON-NLS-1$ }