ubsicap / paratext_demo_plugins

Sample code to demonstrate how to create a Paratext plugin
2 stars 4 forks source link

SetReferenceForSyncGroup() #4

Closed GeoDirk closed 2 years ago

GeoDirk commented 2 years ago

The host.SetReferenceForSyncGroup() method takes in as its first parameter an IVerseRef. But I'm not seeing any setters associated with that interface. There are only getters. I'm I missing something?

FoolRunning commented 2 years ago

I'm assuming you mean that you can't find a way to create a IVerseRef instance. It's a little confusing because a verse reference needs a versification to work properly. Because of this, you create the verse reference from the versification (which can be gotten from a project or the plugin host) via the CreateReferece methods.

GeoDirk commented 2 years ago

@FoolRunning Yeah that a bit round about way of doing it but it makes sense. Thanks for the explanation and link!