org.eclipse.xtext.xtend2.ui.quickfix
Class Xtend2QuickfixProvider

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
      extended by org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
          extended by org.eclipse.xtext.xtend2.ui.quickfix.Xtend2QuickfixProvider
All Implemented Interfaces:
IssueResolutionProvider

public class Xtend2QuickfixProvider
extends DefaultQuickfixProvider

Author:
Jan Koehnlein - Quickfixes for inconsistent indentation, Sebastian Zarnekow - Quickfixes for misspelled types and constructors

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
IssueResolutionProvider.NullImpl
 
Constructor Summary
Xtend2QuickfixProvider()
           
 
Method Summary
 void createLinkingIssueResolutions(Issue issue, IssueResolutionAcceptor issueResolutionAcceptor)
          Filter quickfixes for types and constructors.
 void fixIndentation(Issue issue, IssueResolutionAcceptor acceptor)
           
protected  IScope getImportedTypesScope(org.eclipse.emf.ecore.EObject model, java.lang.String misspelled, IScope actualScope)
           
protected  IScope getImportedTypesScope(org.eclipse.jdt.core.search.IJavaSearchScope scope, org.eclipse.emf.ecore.EObject model, java.lang.String misspelled, IScope actualScope)
           
protected  boolean isSimilarTypeName(java.lang.String s0, java.lang.String s1)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
fixCrossReferenceImage, fixCrossReferenceLabel, getModificationContextFactory, getQualifiedNameConverter, getResolutions, getResolutionsForLinkingIssue, getScopeProvider, getSimilarityMatcher, getUnresolvedEReference, hasResolutionFor, queryScope
 
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

Xtend2QuickfixProvider

public Xtend2QuickfixProvider()
Method Detail

createLinkingIssueResolutions

public void createLinkingIssueResolutions(Issue issue,
                                          IssueResolutionAcceptor issueResolutionAcceptor)
Filter quickfixes for types and constructors.

Overrides:
createLinkingIssueResolutions in class DefaultQuickfixProvider

getImportedTypesScope

protected IScope getImportedTypesScope(org.eclipse.emf.ecore.EObject model,
                                       java.lang.String misspelled,
                                       IScope actualScope)

getImportedTypesScope

protected IScope getImportedTypesScope(org.eclipse.jdt.core.search.IJavaSearchScope scope,
                                       org.eclipse.emf.ecore.EObject model,
                                       java.lang.String misspelled,
                                       IScope actualScope)
                                throws org.eclipse.jdt.core.JavaModelException
Throws:
org.eclipse.jdt.core.JavaModelException

isSimilarTypeName

protected boolean isSimilarTypeName(java.lang.String s0,
                                    java.lang.String s1)

fixIndentation

public void fixIndentation(Issue issue,
                           IssueResolutionAcceptor acceptor)