Search in sources :

Example 1 with ActionSelectionDialog

use of org.netxms.ui.eclipse.epp.dialogs.ActionSelectionDialog in project netxms by netxms.

the class RuleServerActions method addAction.

/**
 * Add new event
 */
private void addAction() {
    ActionSelectionDialog dlg = new ActionSelectionDialog(getShell(), editor.getEditorView().getActions());
    dlg.enableMultiSelection(true);
    if (dlg.open() == Window.OK) {
        for (ServerAction a : dlg.getSelectedActions()) actions.put(a.getId(), a);
    }
    viewer.setInput(actions.values().toArray());
}
Also used : ActionSelectionDialog(org.netxms.ui.eclipse.epp.dialogs.ActionSelectionDialog) ServerAction(org.netxms.client.ServerAction)

Aggregations

ServerAction (org.netxms.client.ServerAction)1 ActionSelectionDialog (org.netxms.ui.eclipse.epp.dialogs.ActionSelectionDialog)1