Revision 9532 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toc/actions/CutLayersTocMenuEntry.java
CutLayersTocMenuEntry.java | ||
---|---|---|
5 | 5 |
import javax.swing.JOptionPane; |
6 | 6 |
|
7 | 7 |
import com.iver.andami.PluginServices; |
8 |
import com.iver.cit.gvsig.ProjectExtension; |
|
8 | 9 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
10 |
import com.iver.cit.gvsig.project.Project; |
|
9 | 11 |
import com.iver.cit.gvsig.project.documents.view.toc.AbstractTocContextMenuAction; |
10 | 12 |
import com.iver.cit.gvsig.project.documents.view.toc.ITocItem; |
11 | 13 |
import com.iver.utiles.XMLEntity; |
12 | 14 |
|
13 | 15 |
public class CutLayersTocMenuEntry extends AbstractTocContextMenuAction { |
14 | 16 |
private CopyPasteLayersUtiles utiles = CopyPasteLayersUtiles.getInstance(); |
15 |
|
|
17 |
|
|
16 | 18 |
public String getGroup() { |
17 | 19 |
return "copyPasteLayer"; |
18 | 20 |
} |
... | ... | |
81 | 83 |
|
82 | 84 |
if (isOK) { |
83 | 85 |
getMapContext().invalidate(); |
86 |
Project project=((ProjectExtension)PluginServices.getExtension(ProjectExtension.class)).getProject(); |
|
87 |
project.setModified(true); |
|
84 | 88 |
if (getMapContext().getLayers().getLayersCount()==0) { |
85 | 89 |
PluginServices.getMainFrame().enableControls(); |
86 | 90 |
} |
Also available in: Unified diff