org.eclipse.xtext.ui.editor.quickfix
Class AbstractDeclarativeQuickfixProvider
java.lang.Object
org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
- All Implemented Interfaces:
- IssueResolutionProvider
- Direct Known Subclasses:
- DefaultQuickfixProvider, XbaseQuickfixProvider
public class AbstractDeclarativeQuickfixProvider
- extends java.lang.Object
- implements IssueResolutionProvider
- Author:
- Knut Wannheden - Initial contribution and API, Heiko Behrens, Jan Koehnlein
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDeclarativeQuickfixProvider
public AbstractDeclarativeQuickfixProvider()
getFixMethodPredicate
protected com.google.common.base.Predicate<java.lang.reflect.Method> getFixMethodPredicate(java.lang.String issueCode)
getResolutions
protected java.util.List<IssueResolution> getResolutions(Issue issue,
java.util.List<java.lang.reflect.Method> fixMethods)
collectMethods
protected java.lang.Iterable<java.lang.reflect.Method> collectMethods(java.lang.Class<? extends AbstractDeclarativeQuickfixProvider> clazz,
java.lang.String issueCode)
getFixMethods
protected java.util.List<java.lang.reflect.Method> getFixMethods(Issue issue)
hasResolutionFor
public boolean hasResolutionFor(java.lang.String issueCode)
- Specified by:
hasResolutionFor
in interface IssueResolutionProvider
getResolutions
public java.util.List<IssueResolution> getResolutions(Issue issue)
- Specified by:
getResolutions
in interface IssueResolutionProvider
getIssueResolutionAcceptorProvider
protected com.google.inject.Provider<IssueResolutionAcceptor> getIssueResolutionAcceptorProvider()
setIssueResolutionAcceptorProvider
public void setIssueResolutionAcceptorProvider(com.google.inject.Provider<IssueResolutionAcceptor> issueResolutionAcceptorProvider)
- for testing without guice