Revision 37871 branches/v2_0_0_prep/applications/appGazetteer/src/org/gvsig/gazetteer/ui/serverconnect/ServerConnectDialogPanel.java

View differences:

ServerConnectDialogPanel.java
83 83
	protected String serversFile = "servers/GazetteerServers.txt";
84 84
	protected String currentServer = "";
85 85
	private ConnectThread connectThread = null;
86
	protected boolean isUpdating = false;
86 87

  
87 88
	/**
88 89
	 * Constructor
......
173 174
	public void actionPerformed(ActionEvent e) {        
174 175
		if (e.getActionCommand().compareTo(CatalogConstants.CONNECT_BUTTON_ACTION_COMMAND)==0) {
175 176
			connectButtonActionPerformed();
176
		}
177
		if (e.getActionCommand().compareTo(CatalogConstants.SEARCH_BUTTON_ACTION_COMMAND)==0) {
177
		}else if (e.getActionCommand().compareTo(CatalogConstants.SEARCH_BUTTON_ACTION_COMMAND)==0) {
178 178
			searchButtonActionPerformed();
179
		}
180
		if (e.getActionCommand().compareTo(CatalogConstants.CLOSE_BUTTON_ACTION_COMMAND)==0) {
179
		}else if (e.getActionCommand().compareTo(CatalogConstants.CLOSE_BUTTON_ACTION_COMMAND)==0) {
181 180
			closeButtonActionPerformed();
181
		}else if (e.getActionCommand().compareTo(CatalogConstants.PROTOCOL_COMBO_ACTION_COMMAND)==0){
182
		    if (!isUpdating){
183
		        isUpdating = true;
184
		        controlsPanel.updateServerByProtocol();
185
		        isUpdating = false;
186
		    }	
187
		}else if (e.getActionCommand().compareTo(CatalogConstants.SERVER_COMBO_ACTION_COMMAND)==0) {
188
		    if (!isUpdating){
189
		        isUpdating = true;
190
		        controlsPanel.updateProtocol();
191
		        isUpdating = false;
192
		    }
182 193
		}
183
		if (e.getActionCommand().compareTo(CatalogConstants.PROTOCOL_COMBO_ACTION_COMMAND)==0){
184
			
185
		}
186
		if (e.getActionCommand().compareTo(CatalogConstants.SERVER_COMBO_ACTION_COMMAND)==0) {
187
			controlsPanel.updateProtocol();
188
		}
189 194
	} 
190 195

  
191 196
	/**

Also available in: Unified diff