Revision 14407 branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/selectServer/SelectServerController.java
SelectServerController.java | ||
---|---|---|
50 | 50 |
import org.gvsig.publish.serversModel.Service; |
51 | 51 |
|
52 | 52 |
import com.iver.andami.ui.mdiManager.IWindow; |
53 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
|
53 | 54 |
|
54 | 55 |
/** |
55 | 56 |
* This class represents the controller for the "add server" use case. |
... | ... | |
65 | 66 |
*/ |
66 | 67 |
public static final String NEWSERVER_EVENT_ACCEPT="accept_new_server"; |
67 | 68 |
public static final String NEWSERVER_EVENT_CANCEL="cancel_new_server"; |
69 |
public static final String COMBOSERVER_EVENT_CHANGE = "change_combo_server"; |
|
68 | 70 |
/** |
69 | 71 |
* dependences |
70 | 72 |
*/ |
... | ... | |
111 | 113 |
String serviceName = window.getSelectedService(); |
112 | 114 |
String serverUrl = window.getSelectedURL(); |
113 | 115 |
|
116 |
//Saves the selected server |
|
117 |
window.saveCurrentServer(); |
|
118 |
|
|
114 | 119 |
//Creates the new Server |
115 | 120 |
Server server = PublishRegister.register().getServer(serverName); |
116 | 121 |
|
... | ... | |
128 | 133 |
window.closeWindow(); |
129 | 134 |
//I've changed byt the observer/observable pattern |
130 | 135 |
//publishController.showWindow(); |
136 |
}else if(e.getActionCommand().equals(SelectServerController.COMBOSERVER_EVENT_CHANGE)){ |
|
137 |
window.updateCombos(); |
|
131 | 138 |
} |
132 | 139 |
} |
133 | 140 |
/** |
Also available in: Unified diff