final String targetId = readRequired(element, ATT_TARGET_ID,
warningsToLog, "Editor contributions need a target id", id); //$NON-NLS-1$
if (targetId == null) {
continue;
}
final Expression visibleWhenExpression = new LegacyEditorContributionExpression(
targetId, window);
// Read all of the child elements from the registry.
readActionsAndMenus(element, id, warningsToLog,
visibleWhenExpression, null);