Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8fafa31ecb00b4051000ad62c8cba67403a4a7cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*****************************************************************************
 * Copyright (c) 2012 CEA LIST.
 *
 *    
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 *****************************************************************************/
package org.eclipse.papyrus.uml.diagram.timing.custom.edit.commands;

import org.eclipse.gef.GraphicalEditPart;

/**
 * Refresh the {@link IFigure} of a given {@link GraphicalEditPart} on undo of this command. <br/>
 * <strong>This command must be created before the other ones in a CompoundCommand</strong> since the commands are
 * executed in reverse when undoing.
 */
public class RefreshCommandForUndo extends AbstractRefreshCommand {

	public RefreshCommandForUndo(final GraphicalEditPart editPartToRefresh) {
		super(editPartToRefresh);
	}

	@Override
	public void undo() {
		refresh();
	}
}

Back to the top