/** 
 * Copyright (c) 2015 committers of YAKINDU and others. 
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0 
 * which accompanies this distribution, and is available at 
 * http://www.eclipse.org/legal/epl-v10.html 
 * Contributors:
 * committers of YAKINDU - initial API and implementation
 *
*/

package org.yakindu.sct.model.stext.ui.quickfix;

import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider;

public class STextQuickfixProvider extends DefaultQuickfixProvider {

//	@Fix(MyJavaValidator.INVALID_NAME)
//	public void capitalizeName(final Issue issue, IssueResolutionAcceptor acceptor) {
//		acceptor.accept(issue, "Capitalize name", "Capitalize the name.", "upcase.png", new IModification() {
//			public void apply(IModificationContext context) throws BadLocationException {
//				IXtextDocument xtextDocument = context.getXtextDocument();
//				String firstLetter = xtextDocument.get(issue.getOffset(), 1);
//				xtextDocument.replace(issue.getOffset(), 1, firstLetter.toUpperCase());
//			}
//		});
//	}

}

@@ -581,548 +581,185 @@
  %7B%0A%0A
-//%09@Fix(MyJavaValidator.INVALID_NAME)%0A//%09public void capitalizeName(final Issue issue, IssueResolutionAcceptor acceptor) %7B%0A//%09%09acceptor.accept(issue, %22Capitalize name%22, %22Capitalize the name.%22, %22upcase.png%22, new IModification() %7B%0A//%09%09%09public void apply(IModificationContext context) throws BadLocationException %7B%0A//%09%09%09%09IXtextDocument xtextDocument = context.getXtextDocument();%0A//%09%09%09%09String firstLetter = xtextDocument.get(issue.getOffset(), 1);%0A//%09%09%09%09xtextDocument.replace(issue.getOffset(), 1, firstLetter.toUpperCase());%0A//%09%09%09%7D%0A//%09%09%7D);%0A//
+%09@Override%0A%09public boolean hasResolutionFor(String issueCode) %7B%0A//%09%09return Diagnostic.LINKING_DIAGNOSTIC.equals(issueCode) %7C%7C super.hasResolutionFor(issueCode);%0A%09%09return false;%0A
 %09%7D%0A%0A

disable quick fixes for errors (#1984)