blob: 6356193df0b0a4a0a46d11e2cf1a563e61f66388 [file] [log] [blame]
package org.eclipse.emf.parsley.tests.util
import org.eclipse.emf.common.command.Command
import org.eclipse.emf.parsley.listeners.AsyncCommandStackListenerClient
class TestableCommandStackListenerClient implements AsyncCommandStackListenerClient {
public val commandsAffectingResources = <Command>newArrayList()
public val commands = <Command>newArrayList()
override mostRecentCommandAffectsResource(Command mostRecentCommand) {
commandsAffectingResources += mostRecentCommand
}
override postCommandStackChanged(Command mostRecentCommand) {
commands += mostRecentCommand
}
}