* @param fromName QualifiedName to change from
* @param toName QualifiedName to change to
*/
private void updateMetadata(CompilerMessageLogger logger, QualifiedName fromName, QualifiedName toName) {
Status updateMetadataStatus = new Status("Update metadata status");
MetadataRenameUpdater metadataRenamer = new MetadataRenameUpdater(updateMetadataStatus, typeChecker, toName, fromName, category);
MetadataRenameUpdater.StatusListener refactoringStatusListener = new MetadataRenameUpdater.StatusListener() {
public void willUseResource(WorkspaceResource resource) {}
public void doneUsingResource(WorkspaceResource resource) {
fireDoneUsingResource(((CALFeatureName)resource.getIdentifier().getFeatureName()).toModuleName());
}
};
metadataRenamer.setStatusListener(refactoringStatusListener);
metadataRenamer.updateMetadata(super.moduleContainer);
metadataRenamer.setStatusListener(null);
addStatusMessagesToCompilerMessageLogger(updateMetadataStatus, Status.Severity.ERROR, logger);
}