Author: max.andersen(a)jboss.com
Date: 2010-12-15 16:09:12 -0500 (Wed, 15 Dec 2010)
New Revision: 27527
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.ui/src/org/jboss/ide/eclipse/as/rse/ui/RSEDeploymentPreferenceUI.java
Log:
JBIDE-7588 minimal fix to stop text field to gain focus
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.ui/src/org/jboss/ide/eclipse/as/rse/ui/RSEDeploymentPreferenceUI.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.ui/src/org/jboss/ide/eclipse/as/rse/ui/RSEDeploymentPreferenceUI.java 2010-12-15
21:03:11 UTC (rev 27526)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.ui/src/org/jboss/ide/eclipse/as/rse/ui/RSEDeploymentPreferenceUI.java 2010-12-15
21:09:12 UTC (rev 27527)
@@ -283,14 +283,20 @@
public void propertyChange(PropertyChangeEvent evt) {
updatingFromModelChange = true;
if( evt.getPropertyName().equals(RSEUtils.RSE_SERVER_HOME_DIR)) {
- rseServerHome.setText(evt.getNewValue().toString());
+ updateTextIfChanges(rseServerHome, evt.getNewValue().toString());
} else if( evt.getPropertyName().equals(RSEUtils.RSE_SERVER_CONFIG)) {
- rseServerConfig.setText(evt.getNewValue().toString());
+ updateTextIfChanges(rseServerConfig, evt.getNewValue().toString());
} else if( evt.getPropertyName().equals(RSEUtils.RSE_SERVER_HOST)) {
combo.setHostName(evt.getNewValue().toString());
}
updatingFromModelChange = false;
}
+
+ private void updateTextIfChanges(Text control, String newValue) {
+ if(!control.getText().equals(newValue)) {
+ control.setText(newValue);
+ }
+ }
protected void browseClicked() {
SystemRemoteFileDialog d = new SystemRemoteFileDialog(
Show replies by date