org.eclipse.xtext.ui.editor.quickfix
Class AbstractDeclarativeQuickfixProvider

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
IssueResolutionProvider.NullImpl
 
Constructor Summary
AbstractDeclarativeQuickfixProvider()
           
 
Method Summary
protected  java.lang.Iterable<java.lang.reflect.Method> collectMethods(java.lang.Class<? extends AbstractDeclarativeQuickfixProvider> clazz, java.lang.String issueCode)
           
protected  com.google.common.base.Predicate<java.lang.reflect.Method> getFixMethodPredicate(java.lang.String issueCode)
           
protected  java.util.List<java.lang.reflect.Method> getFixMethods(Issue issue)
           
protected  com.google.inject.Provider<IssueResolutionAcceptor> getIssueResolutionAcceptorProvider()
           
 java.util.List<IssueResolution> getResolutions(Issue issue)
           
protected  java.util.List<IssueResolution> getResolutions(Issue issue, java.util.List<java.lang.reflect.Method> fixMethods)
           
 boolean hasResolutionFor(java.lang.String issueCode)
           
 void setIssueResolutionAcceptorProvider(com.google.inject.Provider<IssueResolutionAcceptor> issueResolutionAcceptorProvider)
          for testing without guice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDeclarativeQuickfixProvider

public AbstractDeclarativeQuickfixProvider()
Method Detail

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