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

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
      extended by org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
All Implemented Interfaces:
IssueResolutionProvider
Direct Known Subclasses:
CodetemplatesQuickfixProvider, PureXbaseQuickfixProvider, TemplatesQuickfixProvider, XbaseWithAnnotationsQuickfixProvider, Xtend2QuickfixProvider, XtextGrammarQuickfixProvider

public class DefaultQuickfixProvider
extends AbstractDeclarativeQuickfixProvider

Author:
Heiko Behrens - Initial contribution and API, Jan Koehnlein

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
IssueResolutionProvider.NullImpl
 
Constructor Summary
DefaultQuickfixProvider()
           
 
Method Summary
 void createLinkingIssueResolutions(Issue issue, IssueResolutionAcceptor issueResolutionAcceptor)
           
protected  java.lang.String fixCrossReferenceImage(java.lang.String issueString, java.lang.String replacement)
           
protected  java.lang.String fixCrossReferenceLabel(java.lang.String issueString, java.lang.String replacement)
           
protected  IssueModificationContext.Factory getModificationContextFactory()
           
protected  IQualifiedNameConverter getQualifiedNameConverter()
           
 java.util.List<IssueResolution> getResolutions(Issue issue)
           
 java.util.List<IssueResolution> getResolutionsForLinkingIssue(Issue issue)
           
protected  IScopeProvider getScopeProvider()
           
protected  ISimilarityMatcher getSimilarityMatcher()
           
protected  org.eclipse.emf.ecore.EReference getUnresolvedEReference(Issue issue, org.eclipse.emf.ecore.EObject target)
           
 boolean hasResolutionFor(java.lang.String issueCode)
           
protected  java.lang.Iterable<IEObjectDescription> queryScope(IScope scope)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
collectMethods, getFixMethodPredicate, getFixMethods, getIssueResolutionAcceptorProvider, getResolutions, setIssueResolutionAcceptorProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQuickfixProvider

public DefaultQuickfixProvider()
Method Detail

getResolutionsForLinkingIssue

public java.util.List<IssueResolution> getResolutionsForLinkingIssue(Issue issue)

createLinkingIssueResolutions

public void createLinkingIssueResolutions(Issue issue,
                                          IssueResolutionAcceptor issueResolutionAcceptor)

queryScope

protected java.lang.Iterable<IEObjectDescription> queryScope(IScope scope)

getUnresolvedEReference

protected org.eclipse.emf.ecore.EReference getUnresolvedEReference(Issue issue,
                                                                   org.eclipse.emf.ecore.EObject target)

fixCrossReferenceLabel

protected java.lang.String fixCrossReferenceLabel(java.lang.String issueString,
                                                  java.lang.String replacement)

fixCrossReferenceImage

protected java.lang.String fixCrossReferenceImage(java.lang.String issueString,
                                                  java.lang.String replacement)

getResolutions

public java.util.List<IssueResolution> getResolutions(Issue issue)
Specified by:
getResolutions in interface IssueResolutionProvider
Overrides:
getResolutions in class AbstractDeclarativeQuickfixProvider

hasResolutionFor

public boolean hasResolutionFor(java.lang.String issueCode)
Specified by:
hasResolutionFor in interface IssueResolutionProvider
Overrides:
hasResolutionFor in class AbstractDeclarativeQuickfixProvider

getModificationContextFactory

protected IssueModificationContext.Factory getModificationContextFactory()
Since:
2.0

getScopeProvider

protected IScopeProvider getScopeProvider()
Since:
2.0

getQualifiedNameConverter

protected IQualifiedNameConverter getQualifiedNameConverter()
Since:
2.0

getSimilarityMatcher

protected ISimilarityMatcher getSimilarityMatcher()
Since:
2.0