use of org.netxms.ui.eclipse.alarmviewer.editors.AlarmCategoryEditor in project netxms by netxms.
the class AlarmCategoryList method createCategory.
/**
* Create new category
*/
public void createCategory() {
AlarmCategoryEditor editor = new AlarmCategoryEditor(new AlarmCategory());
PropertyDialog dlg = PropertyDialog.createDialogOn(getShell(), null, editor);
dlg.open();
}
use of org.netxms.ui.eclipse.alarmviewer.editors.AlarmCategoryEditor in project netxms by netxms.
the class AlarmCategoryList method editCategory.
/**
* Edit alarm category
*/
public void editCategory() {
if (selection.isEmpty())
return;
AlarmCategoryEditor editor = new AlarmCategoryEditor((AlarmCategory) selection.getFirstElement());
PropertyDialog dlg = PropertyDialog.createDialogOn(getShell(), null, editor);
dlg.open();
}
Aggregations