Search in sources :

Example 11 with ExportToCsvAction

use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.

the class AlarmBrowser method createActions.

/**
 * Create actions
 */
private void createActions() {
    actionRefresh = new RefreshAction(this) {

        @Override
        public void run() {
            alarmView.refresh();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, alarmView.getViewer(), false);
}
Also used : RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction)

Example 12 with ExportToCsvAction

use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.

the class ServerConfigurationEditor method createActions.

/**
 * Create actions
 */
private void createActions() {
    final IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class);
    actionRefresh = new RefreshAction(this) {

        @Override
        public void run() {
            refresh();
        }
    };
    actionAdd = new Action(Messages.get().ServerConfigurationEditor_ActionCreate, SharedIcons.ADD_OBJECT) {

        @Override
        public void run() {
            addVariable();
        }
    };
    // $NON-NLS-1$
    actionAdd.setActionDefinitionId("org.netxms.ui.eclipse.serverconfig.commands.add_config_variable");
    handlerService.activateHandler(actionAdd.getActionDefinitionId(), new ActionHandler(actionAdd));
    actionEdit = new Action(Messages.get().ServerConfigurationEditor_ActionEdit, SharedIcons.EDIT) {

        @Override
        public void run() {
            editVariable();
        }
    };
    actionEdit.setEnabled(false);
    actionDelete = new Action(Messages.get().ServerConfigurationEditor_ActionDelete, SharedIcons.DELETE_OBJECT) {

        @Override
        public void run() {
            deleteVariables();
        }
    };
    actionDelete.setEnabled(false);
    actionShowFilter = new Action("Show filter", Action.AS_CHECK_BOX) {

        @Override
        public void run() {
            enableFilter(!initShowFilter);
            actionShowFilter.setChecked(initShowFilter);
        }
    };
    actionShowFilter.setImageDescriptor(SharedIcons.FILTER);
    actionShowFilter.setChecked(initShowFilter);
    // $NON-NLS-1$
    actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.serverconfig.commands.show_filter");
    handlerService.activateHandler(actionShowFilter.getActionDefinitionId(), new ActionHandler(actionShowFilter));
    actionDefaultValue = new Action("Set default value") {

        @Override
        public void run() {
            setDefaultValue();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, viewer, true);
    actionExportAllToCsv = new ExportToCsvAction(this, viewer, false);
}
Also used : ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction) RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) Action(org.eclipse.jface.action.Action) IHandlerService(org.eclipse.ui.handlers.IHandlerService) RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ActionHandler(org.eclipse.jface.commands.ActionHandler) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction)

Example 13 with ExportToCsvAction

use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.

the class SwitchForwardingDatabaseView method createActions.

/**
 * Create actions
 */
private void createActions() {
    final IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class);
    actionRefresh = new RefreshAction(this) {

        @Override
        public void run() {
            refresh();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, viewer, true);
    actionExportAllToCsv = new ExportToCsvAction(this, viewer, false);
    actionShowFilter = new Action("Show filter", Action.AS_CHECK_BOX) {

        @Override
        public void run() {
            enableFilter(!initShowFilter);
            actionShowFilter.setChecked(initShowFilter);
        }
    };
    actionShowFilter.setChecked(initShowFilter);
    // $NON-NLS-1$
    actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.topology.commands.show_filter");
    handlerService.activateHandler(actionShowFilter.getActionDefinitionId(), new ActionHandler(actionShowFilter));
}
Also used : ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction) Action(org.eclipse.jface.action.Action) RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) IHandlerService(org.eclipse.ui.handlers.IHandlerService) RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction) ActionHandler(org.eclipse.jface.commands.ActionHandler)

Example 14 with ExportToCsvAction

use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.

the class RoutingTableView method createActions.

/**
 * Create actions
 */
private void createActions() {
    actionRefresh = new RefreshAction(this) {

        @Override
        public void run() {
            refresh();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, viewer, true);
    actionExportAllToCsv = new ExportToCsvAction(this, viewer, false);
}
Also used : RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction)

Example 15 with ExportToCsvAction

use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.

the class ObjectAlarmBrowser method createActions.

/**
 * Create actions
 */
private void createActions() {
    actionRefresh = new RefreshAction() {

        @Override
        public void run() {
            alarmView.refresh();
            showObjectList();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, alarmView.getViewer(), false);
}
Also used : RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction)

Aggregations

ExportToCsvAction (org.netxms.ui.eclipse.actions.ExportToCsvAction)21 RefreshAction (org.netxms.ui.eclipse.actions.RefreshAction)17 Action (org.eclipse.jface.action.Action)11 ActionHandler (org.eclipse.jface.commands.ActionHandler)5 IHandlerService (org.eclipse.ui.handlers.IHandlerService)5 IAction (org.eclipse.jface.action.IAction)1 AbstractNode (org.netxms.client.objects.AbstractNode)1 ViewerProvider (org.netxms.ui.eclipse.actions.ViewerProvider)1 AcknowledgeCustomTimeDialog (org.netxms.ui.eclipse.alarmviewer.dialogs.AcknowledgeCustomTimeDialog)1 ObjectSelectionDialog (org.netxms.ui.eclipse.objectbrowser.dialogs.ObjectSelectionDialog)1