org.eclipse.ocl.examples.xtext.essentialocl.ui.quickfix
Class ExtensibleQuickfixProvider

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
      extended by org.eclipse.ocl.examples.xtext.essentialocl.ui.quickfix.ExtensibleQuickfixProvider
All Implemented Interfaces:
org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
Direct Known Subclasses:
EssentialOCLQuickfixProvider

public class ExtensibleQuickfixProvider
extends org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider

ExtensibleQuickfixProvider differs from DefaultQuickfixProvider only through a refactoring to make QuickfixProcessor overrideable.


Nested Class Summary
protected  class ExtensibleQuickfixProvider.QuickfixProcessor
           
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider.NullImpl
 
Field Summary
protected  org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter
           
protected  org.eclipse.xtext.conversion.IValueConverterService valueConverter
           
 
Constructor Summary
ExtensibleQuickfixProvider()
           
 
Method Summary
 void createLinkingIssueResolutions(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor issueResolutionAcceptor)
           
protected  ExtensibleQuickfixProvider.QuickfixProcessor createQuickfixProcessor(org.eclipse.xtext.ui.editor.model.IXtextDocument xtextDocument, org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.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  org.eclipse.xtext.ui.editor.model.edit.IssueModificationContext.Factory getModificationContextFactory()
           
protected  org.eclipse.xtext.naming.IQualifiedNameConverter getQualifiedNameConverter()
           
 java.util.List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutions(org.eclipse.xtext.validation.Issue issue)
           
 java.util.List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutionsForLinkingIssue(org.eclipse.xtext.validation.Issue issue)
           
protected  org.eclipse.xtext.scoping.IScopeProvider getScopeProvider()
           
protected  org.eclipse.xtext.ui.editor.quickfix.ISimilarityMatcher getSimilarityMatcher()
           
protected  org.eclipse.emf.ecore.EReference getUnresolvedEReference(org.eclipse.xtext.validation.Issue issue, org.eclipse.emf.ecore.EObject target)
           
 boolean hasResolutionFor(java.lang.String issueCode)
           
protected  java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> queryScope(org.eclipse.xtext.scoping.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
 

Field Detail

qualifiedNameConverter

@Inject
protected org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter

valueConverter

@Inject
protected org.eclipse.xtext.conversion.IValueConverterService valueConverter
Constructor Detail

ExtensibleQuickfixProvider

public ExtensibleQuickfixProvider()
Method Detail

getResolutionsForLinkingIssue

public java.util.List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutionsForLinkingIssue(org.eclipse.xtext.validation.Issue issue)

createLinkingIssueResolutions

public void createLinkingIssueResolutions(org.eclipse.xtext.validation.Issue issue,
                                          org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor issueResolutionAcceptor)

createQuickfixProcessor

protected ExtensibleQuickfixProvider.QuickfixProcessor createQuickfixProcessor(org.eclipse.xtext.ui.editor.model.IXtextDocument xtextDocument,
                                                                               org.eclipse.xtext.validation.Issue issue,
                                                                               org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor issueResolutionAcceptor)

queryScope

protected java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> queryScope(org.eclipse.xtext.scoping.IScope scope)

getUnresolvedEReference

protected org.eclipse.emf.ecore.EReference getUnresolvedEReference(org.eclipse.xtext.validation.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<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutions(org.eclipse.xtext.validation.Issue issue)
Specified by:
getResolutions in interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
Overrides:
getResolutions in class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider

hasResolutionFor

public boolean hasResolutionFor(java.lang.String issueCode)
Specified by:
hasResolutionFor in interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
Overrides:
hasResolutionFor in class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider

getModificationContextFactory

protected org.eclipse.xtext.ui.editor.model.edit.IssueModificationContext.Factory getModificationContextFactory()
Since:
2.0

getScopeProvider

protected org.eclipse.xtext.scoping.IScopeProvider getScopeProvider()
Since:
2.0

getQualifiedNameConverter

protected org.eclipse.xtext.naming.IQualifiedNameConverter getQualifiedNameConverter()
Since:
2.0

getSimilarityMatcher

protected org.eclipse.xtext.ui.editor.quickfix.ISimilarityMatcher getSimilarityMatcher()
Since:
2.0