public void initRule() {
if (this.getDocumentName() == null) {
this.setDocumentName(this.visualRifEditor.getDocumentContainer().getNameOfActiveElement());
}
final RuleContainer ruleContainer = this.visualRifEditor.getRuleContainer();
final RulePanel rp = ruleContainer.createNewRule(this.getDocumentName(),this.getRuleName());
this.setRulePanel(rp);
this.setRuleName(rp.getRuleName());
this.setInitRule(true);
}