Revision 21358 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/contextmenu/gui/BeforeLayoutMenuEntry.java

View differences:

BeforeLayoutMenuEntry.java
81 81

  
82 82

  
83 83
	public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) {
84
		layoutContext.getEFS().startComplex();
84
		layoutContext.getFrameCommandsRecord().startComplex();
85 85
		for (int i = selectedFrames.length - 1; i >= 0; i--) {
86 86
			IFFrame fframe = selectedFrames[i];
87 87
				if (fframe instanceof FFrameGroup) {
......
90 90

  
91 91
				IFFrame fframeAux=fframe.cloneFFrame(getLayout());
92 92
				fframeAux.setLevel(layoutContext.getNumBefore());
93
				layoutContext.getEFS().update(fframe,fframeAux);
93
				layoutContext.getFrameCommandsRecord().update(fframe,fframeAux);
94 94
				fframeAux.getBoundingBox(layoutContext.getAT());
95 95
		}
96
		layoutContext.getEFS().endComplex(PluginServices.getText(this,"change_before"));
96
		layoutContext.getFrameCommandsRecord().endComplex(PluginServices.getText(this,"change_before"));
97 97
		layoutContext.updateFFrames();
98 98
		layoutContext.callLayoutDrawListeners();
99 99
	}

Also available in: Unified diff