Package com._1c.g5.v8.dt.bsl.ui.quickfix
Class AbstractExternalQuickfixProvider.ExternalQuickfixModification<E extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.quickfix.AbstractExternalQuickfixProvider.ExternalQuickfixModification<E>
-
- Type Parameters:
E- type of model object is contained inIssue
- All Implemented Interfaces:
org.eclipse.xtext.ui.editor.model.edit.IModification
- Enclosing class:
- AbstractExternalQuickfixProvider
@Deprecated protected static class AbstractExternalQuickfixProvider.ExternalQuickfixModification<E extends org.eclipse.emf.ecore.EObject> extends Object implements org.eclipse.xtext.ui.editor.model.edit.IModification
Deprecated.Use com._1c.g5.v8.dt.internal.bsl.ui.qfix.ExternalQuickfixModification insteadImplementation ofIModificationfor creating and applying quickfix text changes.
-
-
Constructor Summary
Constructors Constructor Description ExternalQuickfixModification(org.eclipse.xtext.validation.Issue issue, Class<E> clazz, com.google.common.base.Function<E,org.eclipse.text.edits.TextEdit> function)Deprecated.Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidapply(org.eclipse.xtext.ui.editor.model.edit.IModificationContext context)Deprecated.protected org.eclipse.text.edits.TextEditcreateChanges(org.eclipse.xtext.ui.editor.model.IXtextDocument document, org.eclipse.xtext.validation.Issue issue, Class<E> clazz, com.google.common.base.Function<E,org.eclipse.text.edits.TextEdit> function)Deprecated.Creates quickfix changesprotected org.eclipse.xtext.ui.editor.model.IXtextDocumentgetActualDocument(org.eclipse.xtext.ui.editor.model.edit.IModificationContext context)Deprecated.Gets actualIXtextDocumentfromIModificationContext
-
-
-
Constructor Detail
-
ExternalQuickfixModification
public ExternalQuickfixModification(org.eclipse.xtext.validation.Issue issue, Class<E> clazz, com.google.common.base.Function<E,org.eclipse.text.edits.TextEdit> function)Deprecated.Constructor- Parameters:
issue- processing validationIssue, can't benullclazz-Classof the Built-in object corresponding to validationIssue, can't benullfunction- specialFunctionthat contains logic about creatingTextEditchanges corresponding to quickfix, can't benull
-
-
Method Detail
-
apply
public void apply(org.eclipse.xtext.ui.editor.model.edit.IModificationContext context) throws ExceptionDeprecated.- Specified by:
applyin interfaceorg.eclipse.xtext.ui.editor.model.edit.IModification- Throws:
Exception
-
createChanges
protected org.eclipse.text.edits.TextEdit createChanges(org.eclipse.xtext.ui.editor.model.IXtextDocument document, org.eclipse.xtext.validation.Issue issue, Class<E> clazz, com.google.common.base.Function<E,org.eclipse.text.edits.TextEdit> function)Deprecated.Creates quickfix changes- Parameters:
document- actualIXtextDocument, creating text changes will be applied to it, can't benullissue- processing validationIssue, can't benullclazz-Classof the Built-in object corresponding to validationIssue, can't benullfunction- specialFunctionthat contains logic about creatingTextEditchanges corresponding to quickfix, can't benull- Returns:
- Created
TextEditquickfix changes, can benullin some cases:- object contained in
Issueisn't instanceofclazz functionreturnnull
- object contained in
-
getActualDocument
protected org.eclipse.xtext.ui.editor.model.IXtextDocument getActualDocument(org.eclipse.xtext.ui.editor.model.edit.IModificationContext context)
Deprecated.Gets actualIXtextDocumentfromIModificationContext- Parameters:
context- actualIModificationContextof quickfix, can't benull- Returns:
IXtextDocumentfromIModificationContextornullit there is no implementation ofIXtextDocumentfor thisIModificationContext
-
-