ServiceInfo info = (ServiceInfo) getSelectedNodeInfo().getInfo();
Map<String, List<String[]>> commandList = info.getPossibleCommands();
for (Entry<String, List<String[]>> entry : commandList.entrySet()) {
String command = entry.getKey();
IAction action =
new ServiceAction(command, command, new String[] { "" }, info,
entry.getValue(), this);
action.setEnabled(getSelectedNodeInfo() != null);
actions.add(action);
}
}
return actions.toArray(new IAction[actions.size()]);
}