Search in sources :

Example 1 with LogParserEditor

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

the class LogParserPolicyEditor method createPartControl.

/* (non-Javadoc)
    * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
    */
@Override
public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    editor = new LogParserEditor(parent, SWT.NONE, false);
    editor.addModifyListener(new LogParserModifyListener() {

        @Override
        public void modifyParser() {
            setModified();
        }
    });
}
Also used : LogParserEditor(org.netxms.ui.eclipse.serverconfig.widgets.LogParserEditor) LogParserModifyListener(org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserModifyListener)

Example 2 with LogParserEditor

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

the class SyslogParserConfigurator method createPartControl.

/* (non-Javadoc)
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
@Override
public void createPartControl(Composite parent) {
    editor = new LogParserEditor(parent, SWT.NONE, true);
    editor.addModifyListener(new LogParserModifyListener() {

        @Override
        public void modifyParser() {
            setModified(true);
        }
    });
    createActions();
    contributeToActionBars();
    refresh();
}
Also used : LogParserEditor(org.netxms.ui.eclipse.serverconfig.widgets.LogParserEditor) LogParserModifyListener(org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserModifyListener)

Aggregations

LogParserEditor (org.netxms.ui.eclipse.serverconfig.widgets.LogParserEditor)2 LogParserModifyListener (org.netxms.ui.eclipse.serverconfig.widgets.helpers.LogParserModifyListener)2