use of org.netxms.ui.eclipse.actions.RefreshAction in project netxms by netxms.
the class SyslogParserConfigurator method createActions.
/**
* Create actions
*/
private void createActions() {
actionRefresh = new RefreshAction(this) {
@Override
public void run() {
refresh();
}
};
actionSave = new Action(Messages.get().SyslogParserConfigurator_Save, SharedIcons.SAVE) {
@Override
public void run() {
save();
}
};
}
use of org.netxms.ui.eclipse.actions.RefreshAction 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.RefreshAction 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.RefreshAction 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);
}
use of org.netxms.ui.eclipse.actions.RefreshAction in project netxms by netxms.
the class EventObjectList method createActions.
/**
* Create actions
*/
private void createActions() {
actionNew = new Action(Messages.get().EventConfigurator_NewEvent, SharedIcons.ADD_OBJECT) {
@Override
public void run() {
createNewEventTemplate();
}
};
// $NON-NLS-1$
actionNew.setActionDefinitionId("org.netxms.ui.eclipse.eventmanager.commands.new_event_template");
actionEdit = new // $NON-NLS-1$
Action(// $NON-NLS-1$
Messages.get().EventConfigurator_Properties, // $NON-NLS-1$
SharedIcons.EDIT) {
@Override
public void run() {
editEventTemplate();
}
};
actionEdit.setEnabled(false);
actionDelete = new Action(Messages.get().EventConfigurator_Delete, SharedIcons.DELETE_OBJECT) {
@Override
public void run() {
deleteEventTemplate();
}
};
actionDelete.setEnabled(false);
actionShowFilter = new Action(Messages.get().EventConfigurator_ShowFilter, Action.AS_CHECK_BOX) {
@Override
public void run() {
enableFilter(actionShowFilter.isChecked());
}
};
actionRemove = new Action("&Remove from group") {
@Override
public void run() {
removeFromGroup();
}
};
actionShowGroups = new Action("&Show event groups", Action.AS_CHECK_BOX) {
@Override
public void run() {
showEventGroups();
}
};
actionShowGroups.setChecked(showGroups);
actionNewGroup = new Action("&Add new event group") {
@Override
public void run() {
createNewEventGroup();
}
};
actionShowFilter.setImageDescriptor(SharedIcons.FILTER);
actionShowFilter.setChecked(filterEnabled);
// $NON-NLS-1$
actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.eventmanager.commands.show_filter");
if (viewPart != null) {
final IHandlerService handlerService = (IHandlerService) viewPart.getSite().getService(IHandlerService.class);
// $NON-NLS-1$
actionNew.setActionDefinitionId("org.netxms.ui.eclipse.eventmanager.commands.new_event_template");
handlerService.activateHandler(actionNew.getActionDefinitionId(), new ActionHandler(actionNew));
// $NON-NLS-1$
actionShowFilter.setActionDefinitionId("org.netxms.ui.eclipse.eventmanager.commands.show_filter");
handlerService.activateHandler(actionShowFilter.getActionDefinitionId(), new ActionHandler(actionShowFilter));
actionRefresh = new RefreshAction(viewPart) {
@Override
public void run() {
refreshView();
}
};
} else {
actionRefresh = new RefreshAction() {
@Override
public void run() {
refreshView();
}
};
}
}
Aggregations