|
|
@ -97,21 +97,21 @@ public class PresentHighlightPane extends ConditionAttrSingleConditionPane<Highl |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(HighlightAction ha) { |
|
|
|
public void populate(HighlightAction ha) { |
|
|
|
present = ((PresentHighlightAction)ha).getPresent(); |
|
|
|
int valueIndex = ((PresentHighlightAction)ha).getValueIndex(); |
|
|
|
if (!(present instanceof NormalPresent)) { |
|
|
|
Object obj = ((PresentHighlightAction)ha).getValue(); |
|
|
|
presentComboBox.setSelectedIndex(1); |
|
|
|
presentComboBox.setSelectedIndex(valueIndex); |
|
|
|
} else { |
|
|
|
if(null != obj) { |
|
|
|
presentComboBox.setSelectedIndex(0); |
|
|
|
this.valueEditor.populate(obj); |
|
|
|
valueEditor.populate(((NormalPresent)present).getNormalPresent()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public HighlightAction update() { |
|
|
|
public HighlightAction update() { |
|
|
|
if (presentComboBox.getSelectedIndex() == 0) { |
|
|
|
Object value = this.valueEditor.update(); |
|
|
|
if (this.valueEditor.update() instanceof String) { |
|
|
|
if (presentComboBox.getSelectedIndex() == 1) { |
|
|
|
|
|
|
|
if (value instanceof String) { |
|
|
|
present = new NormalPresent(this.valueEditor.update()); |
|
|
|
present = new NormalPresent(this.valueEditor.update()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return new PresentHighlightAction(present); |
|
|
|
return new PresentHighlightAction(this.valueEditor.update()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |