Revision 39285
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/toc/actions/LayersGroupTocMenuEntry.java | ||
---|---|---|
143 | 143 |
getMapContext().beginAtomicEvent(); |
144 | 144 |
FLayers parent = selectedItems[0].getParentLayer(); |
145 | 145 |
FLayers newGroup = getMapContext().getNewGroupLayer(parent); |
146 |
|
|
147 |
newGroup.setProjection(getMapContext().getProjection()); |
|
146 | 148 |
newGroup.setName(nombre); |
149 |
|
|
147 | 150 |
int pos=0; |
148 | 151 |
for (int i=0;i<parent.getLayersCount();i++){ |
149 | 152 |
if (parent.getLayer(i).equals(selectedItems[0])){ |
Also available in: Unified diff