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