Revision 8877
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/listeners/OptionsServerWindowListener.java | ||
---|---|---|
7 | 7 |
import com.iver.andami.PluginServices; |
8 | 8 |
import com.iver.andami.persistence.serverData.ServerDataPersistence; |
9 | 9 |
import com.iver.andami.ui.mdiManager.IWindow; |
10 |
import com.iver.cit.gvsig.publish.gui.OptionsServerWindow; |
|
11 |
import com.iver.cit.gvsig.publish.gui.SelectServerWindow; |
|
10 | 12 |
import com.iver.cit.gvsig.publish.servers.GenericServer; |
11 | 13 |
import com.iver.cit.gvsig.publish.servers.PublishControler; |
12 | 14 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
... | ... | |
55 | 57 |
* |
56 | 58 |
* $Id$ |
57 | 59 |
* $Log$ |
58 |
* Revision 1.12 2006-11-20 12:59:05 dagilgon
|
|
60 |
* Revision 1.13 2006-11-20 14:17:19 dagilgon
|
|
59 | 61 |
* *** empty log message *** |
60 | 62 |
* |
63 |
* Revision 1.12 2006/11/20 12:59:05 dagilgon |
|
64 |
* *** empty log message *** |
|
65 |
* |
|
61 | 66 |
* Revision 1.11 2006/11/17 13:43:45 jorpiell |
62 | 67 |
* A?adido el nuevo panel donde se muestran las capas |
63 | 68 |
* |
... | ... | |
141 | 146 |
* plugins-persistence file |
142 | 147 |
*/ |
143 | 148 |
private ServerData saveServerOptions(){ |
149 |
SelectServerWindow selectServerWindow = (SelectServerWindow)lastWindow; |
|
150 |
OptionsServerWindow optionsServerWindow = (OptionsServerWindow)currentWindow; |
|
144 | 151 |
String url = selectServerWindow.getServerURL(); |
145 | 152 |
String brand = selectServerWindow.getSelectedBrand(); |
146 | 153 |
String type = selectServerWindow.getSelectedType(); |
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/servers/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