Revision 8877 trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/servers/PublishControler.java

View differences:

PublishControler.java
1 1
package com.iver.cit.gvsig.publish.servers;
2 2

  
3 3
import com.iver.andami.PluginServices;
4
import com.iver.andami.ui.mdiManager.IWindow;
4 5
import com.iver.cit.gvsig.fmap.MapControl;
5 6
import com.iver.cit.gvsig.fmap.layers.FLayers;
6 7
import com.iver.cit.gvsig.project.documents.view.gui.View;
......
53 54
 *
54 55
 * $Id$
55 56
 * $Log$
56
 * Revision 1.6  2006-11-17 09:17:18  jorpiell
57
 * Revision 1.7  2006-11-20 14:17:47  dagilgon
58
 * *** empty log message ***
59
 *
60
 * Revision 1.6  2006/11/17 09:17:18  jorpiell
57 61
 * Cambios motivados por el cambio de RC2 a RC3 en el branch
58 62
 *
59 63
 * Revision 1.5  2006/10/05 12:13:43  jorpiell
......
102 106
	 * 
103 107
	 */
104 108
	public PublishControler(String service) {
105
		view = (View) PluginServices.getMDIManager().getActiveWindow();
109
		IWindow[] windows = PluginServices.getMDIManager().getAllWindows();
110
		for (int i=0 ; i<windows.length ; i++){
111
		    if (windows[i] instanceof View){
112
		    	view = (View)windows[i];
113
		    }
114
		}
106 115
		mapCtrl = view.getMapControl();
107 116
		layers = mapCtrl.getMapContext().getLayers();
108 117
		this.service = service;

Also available in: Unified diff