Skip to content

Package: AsyncCommandStackListenerClient

AsyncCommandStackListenerClient

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2015 RCP Vision (http://www.rcp-vision.com) and others.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Lorenzo Bettini - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.emf.parsley.listeners;
12:
13: import org.eclipse.emf.common.command.Command;
14:
15: /**
16: * A client of the command stack listener that will be notified after a command
17: * has been executed.
18: *
19: * @author Lorenzo Bettini - Initial contribution and API
20: *
21: */
22: public interface AsyncCommandStackListenerClient {
23:
24:         /**
25:          * This is called when the last executed command affects a resource the
26:          * client is interested in.
27:          *
28:          * @param mostRecentCommand
29:          */
30:         void mostRecentCommandAffectsResource(Command mostRecentCommand);
31:
32:         /**
33:          * This is called after {@link #mostRecentCommandAffectsResource(Command)},
34:          * even if the last command did not affect a resource the client is
35:          * interested in.
36:          *
37:          * @param mostRecentCommand
38:          */
39:         void postCommandStackChanged(Command mostRecentCommand);
40:
41: }