Search in sources :

Example 1 with SaveRuleButtonPressedEvent

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));
}
Also used : SaveRuleButtonPressedEvent(org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.SaveRuleButtonPressedEvent) RulesWidgetRequestedEvent(org.archcnl.ui.inputview.rulesormappingeditorview.events.RulesWidgetRequestedEvent)

Aggregations

SaveRuleButtonPressedEvent (org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.SaveRuleButtonPressedEvent)1 RulesWidgetRequestedEvent (org.archcnl.ui.inputview.rulesormappingeditorview.events.RulesWidgetRequestedEvent)1