Revision 799 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/JPropertiesScript.java
JPropertiesScript.java | ||
---|---|---|
62 | 62 |
this.txtDescription.addKeyListener(new MyKeyListener("description", txtDescription)); |
63 | 63 |
this.txtCreatedBy.addKeyListener(new MyKeyListener("createdBy", txtCreatedBy)); |
64 | 64 |
this.txtVersion.addKeyListener(new MyKeyListener("version", txtVersion)); |
65 |
this.txtIsolationGroup.addKeyListener(new MyKeyListener("isolation", txtIsolationGroup)); |
|
65 | 66 |
this.chkEnabled.addItemListener(new ItemListener() { |
66 | 67 |
@Override |
67 | 68 |
public void itemStateChanged(ItemEvent e) { |
... | ... | |
110 | 111 |
} |
111 | 112 |
} |
112 | 113 |
} |
114 |
if( StringUtils.isEmpty(script.getIsolationGroup()) ) { |
|
115 |
this.txtIsolationGroup.setText(""); |
|
116 |
} else { |
|
117 |
this.txtIsolationGroup.setText(script.getIsolationGroup()); |
|
118 |
} |
|
113 | 119 |
} else { |
114 | 120 |
this.chkEnabled.setEnabled(false); |
115 | 121 |
this.chkEnabled.setSelected(false); |
... | ... | |
149 | 155 |
if( version!=null ) { |
150 | 156 |
script.setLibrarySuffix(version.suffix); |
151 | 157 |
} |
158 |
String s = this.txtIsolationGroup.getText(); |
|
159 |
if( StringUtils.isEmpty(s) ) { |
|
160 |
script.setIsolationGroup(null); |
|
161 |
} else { |
|
162 |
script.setIsolationGroup(s.trim()); |
|
163 |
} |
|
152 | 164 |
} |
153 | 165 |
} |
154 | 166 |
|
Also available in: Unified diff