Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/CreateSpatialIndexMonitorableTask.java

View differences:

CreateSpatialIndexMonitorableTask.java
67 67
*/
68 68
package com.iver.cit.gvsig.project.documents.view.legend;
69 69

  
70
import org.gvsig.fmap.data.ReadException;
71
import org.gvsig.fmap.data.feature.FeatureStore;
70
import org.gvsig.fmap.dal.exception.DataException;
71
import org.gvsig.fmap.dal.feature.FeatureStore;
72 72
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
73
import org.gvsig.tools.exception.DriverException;
73 74

  
74 75
import com.iver.andami.PluginServices;
75 76
import com.iver.utiles.swing.threads.CancellableMonitorable;
......
97 98
	 * @throws DriverIOException
98 99
	 * @throws DriverException
99 100
	 */
100
	public CreateSpatialIndexMonitorableTask(FLyrVect layer) throws ReadException{
101
	public CreateSpatialIndexMonitorableTask(FLyrVect layer)
102
			throws DataException {
101 103
		this.layer = layer;
102 104
		MAIN_MESSAGE = PluginServices.getText(this, "Indexando_espacialmente") +
103 105
								layer.getName();
......
123 125
//	}
124 126

  
125 127
	public void run() throws Exception {
126
		FeatureStore fs=((FLyrVect)layer).getFeatureStore();
128
		FeatureStore fs=(layer).getFeatureStore();
127 129
		//TODO comentado para que compile
128 130
//		fs.createIndex(fs.getDefaultFeatureType());
129 131
		finished = true;

Also available in: Unified diff