variant = new WGAPluginResourceVariant(_server, remotePluginInfo);
}
PluginInfo localPluginInfo = _localPluginInfos.get(resource);
SyncInfo info = new WGAPluginResourceSyncInfo(_runtime, _server, resource, localPluginInfo, variant, _remoteWGAVersion);
info.init();
return info;
} else {
IResourceVariant variant = null;
FSDesignResourceState state = _remoteStatesByResource.get(resource);
if (state != null) {
variant = new WGAFSDesignResourceVariant(_server, state);
}
LocalFSDesignResourceState localState = _localStatesByResource.get(resource);
SyncInfo info = new WGAFSDesignResourceSyncInfo(_runtime, _server, resource, localState, variant, variant, _comparator);
info.init();
return info;
}
} catch (CoreException e) {
throw TeamException.asTeamException(e);
}