Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/LayoutKeyEvent.java
LayoutKeyEvent.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
import com.iver.andami.PluginServices; |
8 | 8 |
import com.iver.andami.ui.mdiManager.IWindow; |
9 |
import com.iver.cit.gvsig.exceptions.commands.EditionCommandException; |
|
9 | 10 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
10 | 11 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
11 | 12 |
|
... | ... | |
52 | 53 |
return true; |
53 | 54 |
} |
54 | 55 |
public static boolean undo(Layout layout) { |
55 |
layout.getLayoutContext().getEFS().undo(); |
|
56 |
try { |
|
57 |
layout.getLayoutContext().getEFS().undo(); |
|
58 |
} catch (EditionCommandException e) { |
|
59 |
e.printStackTrace(); |
|
60 |
} |
|
56 | 61 |
layout.getLayoutContext().updateFFrames(); |
57 | 62 |
layout.getLayoutContext().callLayoutDrawListeners(); |
58 | 63 |
PluginServices.getMainFrame().enableControls(); |
59 | 64 |
return true; |
60 | 65 |
} |
61 | 66 |
public static boolean redo(Layout layout) { |
62 |
layout.getLayoutContext().getEFS().redo(); |
|
67 |
try { |
|
68 |
layout.getLayoutContext().getEFS().redo(); |
|
69 |
} catch (EditionCommandException e) { |
|
70 |
e.printStackTrace(); |
|
71 |
} |
|
63 | 72 |
layout.getLayoutContext().updateFFrames(); |
64 | 73 |
layout.getLayoutContext().callLayoutDrawListeners(); |
65 | 74 |
PluginServices.getMainFrame().enableControls(); |
Also available in: Unified diff