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,SubMonitor updaterProgress) {
    if (updaterProgress.isCanceled())
        return;
    referenceUpdater.createReferenceUpdates(elementRenameArguments,referenceDescriptions,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();

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...