Search in sources :

Example 1 with ViewerProvider

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

the class SoftwareInventoryView method createActions.

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

        @Override
        public void run() {
            inventoryWidget.refresh();
        }
    };
    ViewerProvider vp = new ViewerProvider() {

        @Override
        public ColumnViewer getViewer() {
            return inventoryWidget.getViewer();
        }
    };
    actionExportToCsv = new ExportToCsvAction(this, vp, true);
    actionExportAllToCsv = new ExportToCsvAction(this, vp, false);
}
Also used : RefreshAction(org.netxms.ui.eclipse.actions.RefreshAction) ViewerProvider(org.netxms.ui.eclipse.actions.ViewerProvider) ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction)

Aggregations

ExportToCsvAction (org.netxms.ui.eclipse.actions.ExportToCsvAction)1 RefreshAction (org.netxms.ui.eclipse.actions.RefreshAction)1 ViewerProvider (org.netxms.ui.eclipse.actions.ViewerProvider)1