Search in sources :

Example 1 with AlarmCategoryEditor

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();
}
Also used : AlarmCategoryEditor(org.netxms.ui.eclipse.alarmviewer.editors.AlarmCategoryEditor) PropertyDialog(org.eclipse.ui.internal.dialogs.PropertyDialog) AlarmCategory(org.netxms.client.events.AlarmCategory)

Example 2 with AlarmCategoryEditor

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();
}
Also used : AlarmCategoryEditor(org.netxms.ui.eclipse.alarmviewer.editors.AlarmCategoryEditor) PropertyDialog(org.eclipse.ui.internal.dialogs.PropertyDialog)

Aggregations

PropertyDialog (org.eclipse.ui.internal.dialogs.PropertyDialog)2 AlarmCategoryEditor (org.netxms.ui.eclipse.alarmviewer.editors.AlarmCategoryEditor)2 AlarmCategory (org.netxms.client.events.AlarmCategory)1