Revision 9532 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ViewSelectionControls.java

View differences:

ViewSelectionControls.java
43 43
 *
44 44
 * $Id$
45 45
 * $Log$
46
 * Revision 1.14  2006-12-27 11:08:56  fdiaz
46
 * Revision 1.15  2007-01-04 07:24:32  caballero
47
 * isModified
48
 *
49
 * Revision 1.14  2006/12/27 11:08:56  fdiaz
47 50
 * Arreglado el metodo hasVectorLayers para que no se pare en los grupos de capas cuando estos no tienen capas vectoriales.
48 51
 *
49 52
 * Revision 1.13  2006/09/25 16:54:12  caballero
......
106 109
import com.iver.cit.gvsig.gui.selectionByTheme.DefaultSelectionByThemeModel;
107 110
import com.iver.cit.gvsig.gui.selectionByTheme.MySelectionByThemeListener;
108 111
import com.iver.cit.gvsig.gui.selectionByTheme.SelectionByTheme;
112
import com.iver.cit.gvsig.project.documents.ProjectDocument;
109 113
import com.iver.cit.gvsig.project.documents.view.IProjectView;
110 114
import com.iver.cit.gvsig.project.documents.view.gui.View;
111 115

  
......
133 137
		logger.debug("Comand : " + actionCommand);
134 138
		if (actionCommand.equals("SELRECT")) {
135 139
			mapCtrl.setTool("rectSelection");
140
			((ProjectDocument)vista.getModel()).setModified(true);
136 141
		} else if (actionCommand.equals("SELPOINT")) {
137 142
			mapCtrl.setTool("pointSelection");
143
			((ProjectDocument)vista.getModel()).setModified(true);
138 144
		} else if (actionCommand.equals("SELPOL")) {
139 145
			mapCtrl.setTool("polSelection");
146
			((ProjectDocument)vista.getModel()).setModified(true);
140 147
		} else if (actionCommand.equals("SELECTIONBYSHAPE")) {
141 148
			SelectionByTheme dlg = new SelectionByTheme();
142 149
			// FLayer[] layers = mapa.getLayers().getActives();
......
144 151
			dlg.setModel(new DefaultSelectionByThemeModel());
145 152
			dlg.addSelectionListener(new MySelectionByThemeListener());
146 153
			PluginServices.getMDIManager().addWindow(dlg);
154
			((ProjectDocument)vista.getModel()).setModified(true);
147 155
		} else if (actionCommand.equals("INVERT_SELECTION")) {
148 156
			for (int i = 0; i < mapa.getLayers().getActives().length; i++) {
149 157
				FLayer lyr = mapa.getLayers().getActives()[i];
......
165 173

  
166 174
				}
167 175
			}
176
			((ProjectDocument)vista.getModel()).setModified(true);
168 177
		}
169 178
	}
170 179

  

Also available in: Unified diff