use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.
the class Dot1xStatusView 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 InterfacesTab method createActions.
/**
* Create actions
*/
private void createActions() {
actionCopyToClipboard = new Action(Messages.get().InterfacesTab_ActionCopy, SharedIcons.COPY) {
@Override
public void run() {
copyToClipboard(-1);
}
};
actionCopyMacAddressToClipboard = new Action(Messages.get().InterfacesTab_ActionCopyMAC) {
@Override
public void run() {
copyToClipboard(COLUMN_MAC_ADDRESS);
}
};
actionCopyIpAddressToClipboard = new Action(Messages.get().InterfacesTab_ActionCopyIP) {
@Override
public void run() {
copyToClipboard(COLUMN_IP_ADDRESS);
}
};
actionCopyPeerNameToClipboard = new Action(Messages.get().InterfacesTab_ActionCopyPeerName) {
@Override
public void run() {
copyToClipboard(COLUMN_PEER_NAME);
}
};
actionCopyPeerMacToClipboard = new Action(Messages.get().InterfacesTab_ActionCopyPeerMAC) {
@Override
public void run() {
copyToClipboard(COLUMN_PEER_MAC_ADDRESS);
}
};
actionCopyPeerIpToClipboard = new Action(Messages.get().InterfacesTab_ActionCopyPeerIP) {
@Override
public void run() {
copyToClipboard(COLUMN_PEER_IP_ADDRESS);
}
};
actionExportToCsv = new ExportToCsvAction(getViewPart(), viewer, true);
}
use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.
the class LastValuesWidget method createActions.
/**
* Create actions
*/
private void createActions() {
actionUseMultipliers = new Action(Messages.get().LastValuesWidget_UseMultipliers, Action.AS_CHECK_BOX) {
@Override
public void run() {
setUseMultipliers(actionUseMultipliers.isChecked());
}
};
actionUseMultipliers.setChecked(areMultipliersUsed());
actionShowErrors = new Action(Messages.get().LastValuesWidget_ShowErrors, Action.AS_CHECK_BOX) {
@Override
public void run() {
setShowErrors(actionShowErrors.isChecked());
}
};
actionShowErrors.setChecked(isShowErrors());
actionShowUnsupported = new Action(Messages.get().LastValuesWidget_ShowUnsupported, Action.AS_CHECK_BOX) {
@Override
public void run() {
setShowUnsupported(actionShowUnsupported.isChecked());
}
};
actionShowUnsupported.setChecked(isShowUnsupported());
actionShowDisabled = new Action(Messages.get().LastValuesWidget_ShowDisabled, Action.AS_CHECK_BOX) {
@Override
public void run() {
setShowDisabled(actionShowDisabled.isChecked());
}
};
actionShowDisabled.setChecked(isShowDisabled());
actionExportToCsv = new ExportToCsvAction(viewPart, dataViewer, true);
}
use of org.netxms.ui.eclipse.actions.ExportToCsvAction in project netxms by netxms.
the class DataCollectionEditor method createActions.
/**
* Create actions
*/
private void createActions() {
final IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class);
actionRefresh = new RefreshAction() {
@Override
public void run() {
viewer.setInput(dciConfig.getItems());
}
};
actionCreateItem = new // $NON-NLS-1$
Action(// $NON-NLS-1$
Messages.get().DataCollectionEditor_NewParam, // $NON-NLS-1$
Activator.getImageDescriptor("icons/new.png")) {
@Override
public void run() {
createItem();
}
};
actionCreateTable = new Action(Messages.get().DataCollectionEditor_NewTable) {
@Override
public void run() {
createTable();
}
};
actionEdit = new Action(Messages.get().DataCollectionEditor_ActionEdit, SharedIcons.EDIT) {
@Override
public void run() {
editSelectedObject();
}
};
actionEdit.setText(Messages.get().DataCollectionEditor_Edit);
// $NON-NLS-1$
actionEdit.setImageDescriptor(Activator.getImageDescriptor("icons/edit.png"));
actionEdit.setEnabled(false);
actionDelete = new // $NON-NLS-1$
Action(// $NON-NLS-1$
Messages.get().DataCollectionEditor_Delete, // $NON-NLS-1$
Activator.getImageDescriptor("icons/delete.png")) {
@Override
public void run() {
deleteItems();
}
};
actionDelete.setEnabled(false);
actionCopy = new Action(Messages.get().DataCollectionEditor_Copy) {
@Override
public void run() {
copyItems(false);
}
};
actionCopy.setEnabled(false);
actionMove = new Action(Messages.get().DataCollectionEditor_Move) {
@Override
public void run() {
copyItems(true);
}
};
actionMove.setEnabled(false);
actionConvert = new Action(Messages.get().DataCollectionEditor_Convert) {
@Override
public void run() {
convertToTemplate();
}
};
actionConvert.setEnabled(false);
actionDuplicate = new Action(Messages.get().DataCollectionEditor_Duplicate) {
@Override
public void run() {
duplicateItems();
}
};
actionDuplicate.setEnabled(false);
actionActivate = new // $NON-NLS-1$
Action(// $NON-NLS-1$
Messages.get().DataCollectionEditor_Activate, // $NON-NLS-1$
Activator.getImageDescriptor("icons/active.gif")) {
@Override
public void run() {
setItemStatus(DataCollectionObject.ACTIVE);
actionActivate.setEnabled(false);
actionDisable.setEnabled(true);
}
};
actionActivate.setEnabled(false);
actionDisable = new // $NON-NLS-1$
Action(// $NON-NLS-1$
Messages.get().DataCollectionEditor_Disable, // $NON-NLS-1$
Activator.getImageDescriptor("icons/disabled.gif")) {
@Override
public void run() {
setItemStatus(DataCollectionObject.DISABLED);
actionActivate.setEnabled(true);
actionDisable.setEnabled(false);
}
};
actionDisable.setEnabled(false);
actionShowFilter = new Action(Messages.get().DataCollectionEditor_ShowFilter, Action.AS_CHECK_BOX) {
@Override
public void run() {
enableFilter(actionShowFilter.isChecked());
}
};
actionShowFilter.setImageDescriptor(SharedIcons.FILTER);
actionShowFilter.setChecked(getBooleanFromSettings("DataCollectionEditor.showFilter", true));
// $NON-NLS-1$
actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.datacollection.commands.show_dci_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 SummaryTable method createActions.
/**
* Create actions
*/
private void createActions() {
actionRefresh = new RefreshAction(this) {
@Override
public void run() {
viewer.refresh();
}
};
actionExportAllToCsv = new ExportToCsvAction(this, viewer.getViewer(), false);
}
Aggregations