Search in sources :

Example 6 with ExportToCsvAction

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

the class LogViewer method createActions.

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

        @Override
        public void run() {
            refreshData();
        }
    };
    actionRefresh.setEnabled(false);
    actionExecute = new Action(Messages.get().LogViewer_ActionExec, SharedIcons.EXECUTE) {

        @Override
        public void run() {
            doQuery();
        }
    };
    // $NON-NLS-1$
    actionExecute.setActionDefinitionId("org.netxms.ui.eclipse.logviewer.commands.execute");
    handlerService.activateHandler(actionExecute.getActionDefinitionId(), new ActionHandler(actionExecute));
    actionClearFilter = new Action(Messages.get().LogViewer_ActionClearFilter, SharedIcons.CLEAR_LOG) {

        @Override
        public void run() {
            filterBuilder.clearFilter();
        }
    };
    actionGetMoreData = new // $NON-NLS-1$
    Action(// $NON-NLS-1$
    Messages.get().LogViewer_ActionGetMoreData, // $NON-NLS-1$
    Activator.getImageDescriptor("icons/get_more_data.png")) {

        @Override
        public void run() {
            getMoreData();
        }
    };
    actionGetMoreData.setEnabled(false);
    // $NON-NLS-1$
    actionGetMoreData.setActionDefinitionId("org.netxms.ui.eclipse.logviewer.commands.get_more_data");
    handlerService.activateHandler(actionGetMoreData.getActionDefinitionId(), new ActionHandler(actionGetMoreData));
    actionShowFilter = new Action(Messages.get().LogViewer_ActionShowFilter, Action.AS_CHECK_BOX) {

        @Override
        public void run() {
            showFilter(actionShowFilter.isChecked());
        }
    };
    actionShowFilter.setChecked(true);
    // $NON-NLS-1$
    actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.logviewer.commands.show_filter");
    handlerService.activateHandler(actionShowFilter.getActionDefinitionId(), new ActionHandler(actionShowFilter));
    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 7 with ExportToCsvAction

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

the class HistoricalDataView method createActions.

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

        @Override
        public void run() {
            refreshData();
        }
    };
    actionSelectRange = new Action(Messages.get().HistoricalDataView_SelectDataRange) {

        @Override
        public void run() {
            selectRange();
        }
    };
    actionDeleteDciEntry = new Action("Delete entry") {

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

Example 8 with ExportToCsvAction

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

the class WirelessStations 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 9 with ExportToCsvAction

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

the class RadioInterfaces 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 10 with ExportToCsvAction

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

the class VlanView method createActions.

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

        @Override
        public void run() {
            refreshVlanList();
        }
    };
    actionShowVlanMap = new Action(Messages.get().VlanView_ShowVlanMap) {

        @Override
        public void run() {
            showVlanMap();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, vlanList, true);
    actionExportAllToCsv = new ExportToCsvAction(this, vlanList, false);
}
Also used : ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction) Action(org.eclipse.jface.action.Action) RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) 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