1
|
/*******************************************************************************
|
2
|
* Copyright (c) 2004, 2010 IBM Corporation 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
|
* IBM Corporation - initial API and implementation
|
10
|
*******************************************************************************/
|
11
|
|
12
|
package org.eclipse.gef.commands;
|
13
|
|
14
|
/**
|
15
|
* A listener interface for receiving notification before and after commands are
|
16
|
* executed, undone, or redone.
|
17
|
*
|
18
|
* @since 3.1
|
19
|
*/
|
20
|
public interface CommandStackEventListener {
|
21
|
|
22
|
/**
|
23
|
* Sent when an event occurs on the command stack.
|
24
|
* {@link CommandStackEvent#getDetail()} can be used to identify the type of
|
25
|
* event which has occurred.
|
26
|
*
|
27
|
* @since 3.1
|
28
|
* @param event
|
29
|
* the event
|
30
|
*/
|
31
|
void stackChanged(CommandStackEvent event);
|
32
|
|
33
|
}
|