}
}
};
contribution.setId(id);
contribution.setImageDescriptor(icon);
EditActionContribution selected = this.processor.selectedEditors.get(feature
.getFeatureType());
if (selected == null) {
selected = processor.createEditAction(processor.getClosestMatch(selection), selection,
feature);
} else {
selected.setSelection(selection);
}
if (selected != null && selected.getId().equals(id))
contribution.setChecked(true);
else
contribution.setChecked(false);
return contribution;