Revision 22616 branches/v10/extensions/extPublish/src/org/gvsig/publish/infoproject/ViewInfo.java

View differences:

ViewInfo.java
47 47

  
48 48
import com.iver.andami.PluginServices;
49 49
import com.iver.cit.gvsig.fmap.DriverException;
50
import com.iver.cit.gvsig.fmap.layers.CancelationException;
51 50
import com.iver.cit.gvsig.fmap.layers.FLayer;
52 51
import com.iver.cit.gvsig.fmap.layers.FLayers;
53
import com.iver.cit.gvsig.fmap.layers.LayerCollectionEvent;
54
import com.iver.cit.gvsig.fmap.layers.LayerCollectionListener;
55
import com.iver.cit.gvsig.fmap.layers.LayerPositionEvent;
56 52
import com.iver.cit.gvsig.project.documents.view.ProjectView;
57 53

  
58 54

  
......
63 59
 * @author Jos? Vicente Hig?n (josevicente.higon@iver.es)
64 60
 *
65 61
 */
66
public class ViewInfo implements IViewInfo, LayerCollectionListener {
62
public class ViewInfo implements IViewInfo {
67 63
	private ProjectView view = null;
68 64
	private LayerInfo[] layers = null;
69 65
	private ProjectInfo project = null;	
......
75 71
	public ViewInfo(ProjectView view, ProjectInfo projectInfo){
76 72
		this.project = projectInfo;
77 73
		this.view = view;
78
		FLayers lyrs = this.view.getMapContext().getLayers();
79
		lyrs.addLayerCollectionListener(this);
74
		FLayers lyrs = this.view.getMapContext().getLayers();		
80 75
		this.layers = new LayerInfo[lyrs.getLayersCount()];
81 76
		int j = lyrs.getLayersCount() -1 ;
82 77
		for (int i=0; i < lyrs.getLayersCount(); i++){
......
170 165
	 */
171 166
	public IProjectInfo getProjectInfo() {
172 167
		return project;
173
	}
174
	public void layerAdded(LayerCollectionEvent e) {
175
		// TODO Auto-generated method stub
176
		
177
	}
178
	public void layerAdding(LayerCollectionEvent e) throws CancelationException {
179
		// TODO Auto-generated method stub
180
		
181
	}
182
	public void layerMoved(LayerPositionEvent e) {
183
		// TODO Auto-generated method stub
184
		
185
	}
186
	public void layerMoving(LayerPositionEvent e) throws CancelationException {
187
		// TODO Auto-generated method stub		
188
		
189
	}
190
	public void layerRemoved(LayerCollectionEvent e) {
191
		System.err.println("Aiba!!!!!!!! capa " +  e.getAffectedLayer().getName() + " borrada");
192
		
193
		
194
	}
195
	public void layerRemoving(LayerCollectionEvent e)
196
			throws CancelationException {
197
		// TODO Auto-generated method stub
198
		
199
	}
200
	public void visibilityChanged(LayerCollectionEvent e)
201
			throws CancelationException {
202
		// TODO Auto-generated method stub
203
		
204
	}
168
	}	
205 169

  
206 170
}

Also available in: Unified diff