use of jetbrains.communicator.core.impl.transport.GetVFileContentsProvider in project intellij-plugins by JetBrains.
the class BaseTestCase method registerResponseProviders.
protected void registerResponseProviders(UserModel userModel, IDEFacade ideFacade) {
final XmlResponseProvider[] providers = { new GetVFileContentsProvider(ideFacade, userModel), new GetProjectsDataProvider(ideFacade, userModel), new CodePointerEventProvider(getBroadcaster()), new TextMessageEventProvider(getBroadcaster()), new BecomeAvailableXmlMessage() };
for (XmlResponseProvider provider : providers) {
Pico.getInstance().registerComponentInstance(provider);
}
disposeOnTearDown(new Disposable() {
@Override
public void dispose() {
for (XmlResponseProvider provider : providers) {
Pico.getInstance().unregisterComponentByInstance(provider);
}
}
});
}
Aggregations