Java 类org.eclipse.xtext.ui.refactoring.IReferenceUpdater 实例源码

项目:bts    文件:ReferenceUpdaterDispatcher.java   
public void createReferenceUpdates(ElementRenameArguments elementRenameArguments, ResourceSet resourceSet,
        IRefactoringUpdateAcceptor updateAcceptor, IProgressMonitor monitor) {
    SubMonitor progress = SubMonitor.convert(monitor, "Updating references", 100);
    ResourceAccess resourceAccess = resourceAccessProvider.get();
    resourceAccess.registerResourceSet(resourceSet);

    ReferenceDescriptionAcceptor referenceDescriptionAcceptor = createFindReferenceAcceptor(updateAcceptor);
    referenceFinder.findAllReferences(elementRenameArguments.getRenamedElementURIs(), 
            resourceAccess,
            referenceDescriptionAcceptor, progress.newChild(2));
    Multimap<IReferenceUpdater, IReferenceDescription> updater2descriptions = referenceDescriptionAcceptor
            .getReferenceUpdater2ReferenceDescriptions();
    SubMonitor updaterProgress = progress.newChild(98).setWorkRemaining(updater2descriptions.keySet().size());
    for (IReferenceUpdater referenceUpdater : updater2descriptions.keySet()) {
        createReferenceUpdates(referenceUpdater, elementRenameArguments,
                updater2descriptions.get(referenceUpdater), updateAcceptor, updaterProgress);
    }
}
项目:bts    文件:ReferenceUpdaterDispatcher.java   
protected void createReferenceUpdates(IReferenceUpdater referenceUpdater,
        ElementRenameArguments elementRenameArguments, Iterable<IReferenceDescription> referenceDescriptions,
        IRefactoringUpdateAcceptor updateAcceptor, SubMonitor updaterProgress) {
    if (updaterProgress.isCanceled())
        return;
    referenceUpdater.createReferenceUpdates(elementRenameArguments, referenceDescriptions, updateAcceptor,
            updaterProgress.newChild(1));
}
项目:bts    文件:ReferenceUpdaterDispatcher.java   
public void accept(IReferenceDescription referenceDescription) {
    if (referenceDescription.getSourceEObjectUri() == null
            || referenceDescription.getTargetEObjectUri() == null
            || referenceDescription.getEReference() == null) {
        handleCorruptReferenceDescription(referenceDescription, status);
    } else {
        URI sourceResourceURI = referenceDescription.getSourceEObjectUri().trimFragment();
        IReferenceUpdater referenceUpdater = getReferenceUpdater(sourceResourceURI);
        if (referenceUpdater == null)
            handleNoReferenceUpdater(sourceResourceURI, status);
        else
            updater2refs.put(referenceUpdater, referenceDescription);
    }
}
项目:bts    文件:ReferenceUpdaterDispatcher.java   
protected IReferenceUpdater getReferenceUpdater(URI sourceResourceURI) {
    //TODO Why do we cache the IReferenceUpdater here?
    IResourceServiceProvider resourceServiceProvider = resourceServiceProviderRegistry
            .getResourceServiceProvider(sourceResourceURI);
    if (resourceServiceProvider == null)
        return null;
    IReferenceUpdater referenceUpdater = provider2updater.get(resourceServiceProvider);
    if (referenceUpdater == null) {
        referenceUpdater = resourceServiceProvider.get(OptionalReferenceUpdaterProxy.class).get();
        if (referenceUpdater != null)
            provider2updater.put(resourceServiceProvider, referenceUpdater);
    }
    return referenceUpdater;
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:n4js    文件:AbstractN4JSUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:n4js    文件:AbstractN4MFUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:n4js    文件:AbstractTypesUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:bromium    文件:AbstractBromiumUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return XbaseReferenceUpdater.class;
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:M2Doc    文件:AbstractMyDslUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:minitl    文件:AbstractMinitlUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:Sparrow    文件:AbstractModelEditorUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:bts    文件:EmfUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return EmfResourceReferenceUpdater.class;
}
项目:bts    文件:DefaultResourceUIServiceProvider.java   
/**
 * @deprecated use <code>get(IReferenceUpdater.class)</code> instead
 */
@Deprecated
public IReferenceUpdater getReferenceUpdater() {
    return get(IReferenceUpdater.class);
}
项目:bts    文件:ReferenceUpdaterDispatcher.java   
public Multimap<IReferenceUpdater, IReferenceDescription> getReferenceUpdater2ReferenceDescriptions() {
    return updater2refs;
}
项目:bts    文件:ReferenceUpdaterDispatcher.java   
public IReferenceUpdater get() {
    return referenceUpdater;
}
项目:cs2as    文件:AbstractASBHLangUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:cs2as    文件:AbstractMiniOCLUiModule.java   
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
    return DefaultReferenceUpdater.class;
}
项目:bts    文件:IResourceUIServiceProvider.java   
/**
 * The reference updater of the language.
 * @deprecated use {@link #get(Class) get(IReferenceUpdater.class)}  instead
 */
@Deprecated
IReferenceUpdater getReferenceUpdater();