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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations