Revision 1570 branches/pilotoDWG/applications/appgvSIG/src/com/iver/cit/gvsig/StopEditing.java
StopEditing.java | ||
---|---|---|
82 | 82 |
.getActives()[0]; |
83 | 83 |
|
84 | 84 |
try { |
85 |
capa.stopEdition(); |
|
85 |
if (actionCommand.equals("STOP")){ |
|
86 |
capa.stopEdition(); |
|
87 |
}else if (actionCommand.equals("SHOWGRID")){ |
|
88 |
vista.getMapControl().getCadToolAdapter().setGrid(true); |
|
89 |
}else if (actionCommand.equals("HIDEGRID")){ |
|
90 |
vista.getMapControl().getCadToolAdapter().setGrid(false); |
|
91 |
}else if (actionCommand.equals("SETADJUSTGRID")){ |
|
92 |
vista.getMapControl().getCadToolAdapter().setAdjustGrid(false); |
|
93 |
}else if (actionCommand.equals("NOTADJUSTGRID")){ |
|
94 |
vista.getMapControl().getCadToolAdapter().setAdjustGrid(true); |
|
95 |
} |
|
86 | 96 |
} catch (EditionException e) { |
87 | 97 |
e.printStackTrace(); |
88 | 98 |
} |
Also available in: Unified diff