blob: fb0a9ae2b593eb63cf610ec9ec9ee836b8dd7256 (
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
31
32
33
34
35
36
|
/*****************************************************************************
* 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.draw2d.IFigure;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.commands.CompoundCommand;
/**
* Refresh the {@link IFigure} of a given {@link GraphicalEditPart} on execute and redo of this command. This command
* must be placed at the end of a {@link CompoundCommand}, as the execute and redo are done in forward order.
*/
public class RefreshCommandForDo extends AbstractRefreshCommand {
public RefreshCommandForDo(final GraphicalEditPart editPartToRefresh) {
super(editPartToRefresh);
}
@Override
public void execute() {
refresh();
}
@Override
public void redo() {
refresh();
}
}
|