use of org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.SaveRuleButtonPressedEvent in project ArchCNL by Mari-Wie.
the class RuleCreatorView method saveRule.
private void saveRule() {
if (!archRuleTextArea.isEmpty()) {
fireEvent(new SaveRuleButtonPressedEvent(this, true, createTextareaRule(archRuleTextArea.getValue())));
fireEvent(new RulesWidgetRequestedEvent(this, true));
return;
}
fireEvent(new SaveRuleButtonPressedEvent(this, true, (subject.getRuleString() + verb.getRuleString().stripTrailing() + ".")));
fireEvent(new RulesWidgetRequestedEvent(this, true));
}
Aggregations