Browse Source

代码质量

代码质量
master
zpc 9 years ago
parent
commit
baa85099e6
  1. 12
      designer/src/com/fr/design/condition/PresentHighlightPane.java

12
designer/src/com/fr/design/condition/PresentHighlightPane.java

@ -98,15 +98,11 @@ public class PresentHighlightPane extends ConditionAttrSingleConditionPane<Highl
public void populate(HighlightAction ha) { public void populate(HighlightAction ha) {
int valueIndex = ((PresentHighlightAction)ha).getValueIndex(); int valueIndex = ((PresentHighlightAction)ha).getValueIndex();
if(0 == valueIndex) Object obj = ((PresentHighlightAction)ha).getValue();
{ presentComboBox.setSelectedIndex(valueIndex);
presentComboBox.setSelectedIndex(1); if(null != obj) {
this.valueEditor.populate(obj);
} }
else {
presentComboBox.setSelectedIndex(0);
this.valueEditor.populate(((PresentHighlightAction)ha).getValue());
}
} }
public HighlightAction update() { public HighlightAction update() {

Loading…
Cancel
Save