@Fix(SYNTAX_IS_NOT_PROTO2_ERROR)
public void changeSyntaxToProto2(Issue issue, IssueResolutionAcceptor acceptor) {
ISemanticModification modification = new ISemanticModification() {
@Override public void apply(EObject element, IModificationContext context) throws Exception {
Syntax syntax = (Syntax) element;
syntax.setName(proto2());
}
};
String description = String.format(changeValueDescription, "syntax", quote(proto2()));
String label = String.format(changeValueLabel, proto2());
acceptor.accept(issue, label, description, ICON_FOR_CHANGE, modification);