org.eclipse.xtext.ui.refactoring
Interface IRenamedElementTracker

All Known Implementing Classes:
RenamedElementTracker

public interface IRenamedElementTracker

Tracks the URIs of the elements whose names change in a refactoring. This is necessary as URIs could change if the language implements a name dependent IFragmentProvider.

Author:
Jan Koehnlein - Initial contribution and API

Method Summary
 java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> renameAndTrack(java.lang.Iterable<org.eclipse.emf.common.util.URI> renamedElementURIs, java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, IRenameStrategy renameStrategy, org.eclipse.core.runtime.IProgressMonitor monitor)
          Applies the semantic change, relocates the renamedElements and returns a map of original to new URIs.
 

Method Detail

renameAndTrack

java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> renameAndTrack(java.lang.Iterable<org.eclipse.emf.common.util.URI> renamedElementURIs,
                                                                                              java.lang.String newName,
                                                                                              org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                                                                              IRenameStrategy renameStrategy,
                                                                                              org.eclipse.core.runtime.IProgressMonitor monitor)
Applies the semantic change, relocates the renamedElements and returns a map of original to new URIs.