org.eclipse.xtext.ui.refactoring.impl
Class EmfResourceReferenceUpdater
java.lang.Object
org.eclipse.xtext.ui.refactoring.impl.AbstractReferenceUpdater
org.eclipse.xtext.ui.refactoring.impl.EmfResourceReferenceUpdater
- All Implemented Interfaces:
- IReferenceUpdater
public class EmfResourceReferenceUpdater
- extends AbstractReferenceUpdater
A generic reference updater for EMF resources referring to Xtext elements.
Uses the resources default serialization mechanism to update resources. This only works if the resource does not have
errors. For Xtext-based languages it is far more fault tolerant to use a DefaultReferenceUpdater
that only
serializes the sections of the document that actually represent cross-references.
- Author:
- Jan Koehnlein - Initial contribution and API, Holger Schill
Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.AbstractReferenceUpdater |
createClusteredReferenceUpdates, createReferenceUpdates, createReferenceUpdatesForCluster, getClusterSize, handleCannotLoadReferringElement, handleCannotResolveExistingReference, loadReferringResources, loadTargetResources, resolveReference, resolveReferenceProxies, unloadNonTargetResources |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmfResourceReferenceUpdater
public EmfResourceReferenceUpdater()
createReferenceUpdates
protected void createReferenceUpdates(ElementRenameArguments elementRenameArguments,
com.google.common.collect.Multimap<org.eclipse.emf.common.util.URI,IReferenceDescription> resource2references,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
IRefactoringUpdateAcceptor updateAcceptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
createReferenceUpdates
in class AbstractReferenceUpdater