}
}
for( IConfigurationElement element : list ) {
if (element.getName().equals("category")) //$NON-NLS-1$
continue;
OpAction action = new OpAction(element);
if (window != null)
window.getSelectionService().addSelectionListener(action);
OperationCategory category = categories.get(element.getAttribute("categoryId")); //$NON-NLS-1$
if (category != null) {
category.add(action);
} else {
actions.add(action);
if (element.getAttribute("categoryId") != null && element.getAttribute("categoryId").length() != 0) { //$NON-NLS-1$ //$NON-NLS-2$
UiPlugin.log("Action '"+action.getText()+"' references invalid category '"+element.getAttribute("categoryId")+"'.", null); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
}
}
}