Search in sources :

Example 1 with LogParserRuleEditor

use of org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRuleEditor in project netxms by netxms.

the class LogParserEditor method addRule.

/**
 * @param addColumnLink
 */
private void addRule() {
    LogParserRule rule = new LogParserRule();
    LogParserRuleEditor editor = createRuleEditor(rule);
    editor.moveAbove(addColumnLink);
    parser.getRules().add(rule);
    form.reflow(true);
    fireModifyListeners();
}
Also used : LogParserRule(org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRule) LogParserRuleEditor(org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRuleEditor)

Example 2 with LogParserRuleEditor

use of org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRuleEditor in project netxms by netxms.

the class LogParserEditor method createRuleEditor.

/**
 * @param rule
 */
private LogParserRuleEditor createRuleEditor(LogParserRule rule) {
    LogParserRuleEditor editor = new LogParserRuleEditor(rulesArea, toolkit, rule, this);
    GridData gd = new GridData();
    gd.horizontalAlignment = SWT.FILL;
    gd.grabExcessHorizontalSpace = true;
    editor.setLayoutData(gd);
    rule.setEditor(editor);
    return editor;
}
Also used : GridData(org.eclipse.swt.layout.GridData) LogParserRuleEditor(org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRuleEditor)

Aggregations

LogParserRuleEditor (org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRuleEditor)2 GridData (org.eclipse.swt.layout.GridData)1 LogParserRule (org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserRule)1