Revision 24962 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/commands/DeleteFrameCommand.java
DeleteFrameCommand.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
import java.io.IOException; |
49 | 49 |
|
50 |
import org.gvsig.fmap.data.commands.AbstractCommand; |
|
50 |
import org.gvsig.tools.undo.command.Command; |
|
51 |
import org.gvsig.tools.undo.command.impl.AbstractCommand; |
|
51 | 52 |
|
52 | 53 |
import com.iver.andami.PluginServices; |
53 | 54 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
... | ... | |
57 | 58 |
public class DeleteFrameCommand extends AbstractCommand { |
58 | 59 |
private FrameManager fm; |
59 | 60 |
private int index; |
60 |
public DeleteFrameCommand(FrameManager fm,IFFrame frame) { |
|
61 |
public DeleteFrameCommand(FrameManager fm,IFFrame frame, String description) { |
|
62 |
super(description); |
|
61 | 63 |
this.fm=fm; |
62 | 64 |
for (int i = 0; i < fm.getAllFFrames().length; i++) { |
63 | 65 |
if (fm.getFFrame(i).equals(frame)) { |
... | ... | |
83 | 85 |
fm.doRemoveFFrame(index); |
84 | 86 |
} |
85 | 87 |
|
86 |
public String getType() {
|
|
87 |
return PluginServices.getText(this,"borrar");
|
|
88 |
public int getType() {
|
|
89 |
return Command.DELETE;
|
|
88 | 90 |
} |
89 | 91 |
|
90 | 92 |
public void execute() { |
Also available in: Unified diff