Revision 9529 branches/piloto3d/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/commands/DefaultEditableFeatureSource.java
DefaultEditableFeatureSource.java | ||
---|---|---|
51 | 51 |
import com.iver.cit.gvsig.fmap.edition.commands.CommandCollection; |
52 | 52 |
import com.iver.cit.gvsig.fmap.edition.commands.CommandRecord; |
53 | 53 |
import com.iver.cit.gvsig.fmap.edition.commands.MemoryCommandRecord; |
54 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameGroup;
|
|
54 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameGroup;
|
|
55 | 55 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
56 | 56 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrameViewDependence; |
57 | 57 |
|
... | ... | |
189 | 189 |
int posAnt = -1; |
190 | 190 |
|
191 | 191 |
for (int i = 0; i < fframes.size(); i++) { |
192 |
if (fframes.get(i).equals(fant) && !invalidates.get(i)) {
|
|
193 |
posAnt = i;
|
|
192 |
if (fframes.get(i).equals(fant)) { |
|
193 |
posAnt = i;
|
|
194 | 194 |
} |
195 | 195 |
} |
196 | 196 |
if (posAnt==-1) |
... | ... | |
281 | 281 |
* @param indexAnt Actual index. |
282 | 282 |
* @param indexLast Previous index. |
283 | 283 |
*/ |
284 |
public void undoModifyFFrame(int index, |
|
285 |
int newIndex) { |
|
286 |
undoRemoveFFrame(index); |
|
287 |
undoAddFFrame(newIndex); |
|
288 |
IFFrame fant=(IFFrame)fframes.get(newIndex); |
|
289 |
IFFrame fnew=(IFFrame)fframes.get(index); |
|
290 |
refreshDependences(fant,fnew); |
|
284 |
public void undoModifyFFrame(IFFrame fant, IFFrame fnew, int indexAnt, |
|
285 |
int indexLast) { |
|
286 |
doAddFFrame(fant, indexAnt); |
|
287 |
undoAddFFrame(indexLast); |
|
291 | 288 |
} |
292 | 289 |
|
293 | 290 |
/** |
... | ... | |
400 | 397 |
public CommandRecord getCommandRecord() { |
401 | 398 |
return cr; |
402 | 399 |
} |
403 |
|
|
404 |
public void redoModifyFFrame(int index, int newIndex, IFFrame frame) { |
|
405 |
doRemoveFFrame(index); |
|
406 |
doAddFFrame(frame,newIndex); |
|
407 |
IFFrame fant=(IFFrame)fframes.get(newIndex); |
|
408 |
refreshDependences(fant,frame); |
|
409 |
} |
|
410 | 400 |
} |
Also available in: Unified diff