LT-22333: Click on Preview pane and go to field#818
LT-22333: Click on Preview pane and go to field#818jtmaxwell3 wants to merge 11 commits intomainfrom
Conversation
|
I think this needs to be a ConcurrentDictionary for thread safety. |
mark-sil
left a comment
There was a problem hiding this comment.
@mark-sil reviewed 7 files and all commit messages, and made 4 comments.
Reviewable status: 7 of 10 files reviewed, 4 unresolved discussions (waiting on jasonleenaylor and jtmaxwell3).
Src/Utilities/AlloVarGen/AlloGenService/AlloGenServiceTests/TestData/Quechua MYL CausDeriv.fwdata.lock line 1 at r1 (raw file):
{"__type":"FileLockContent:#Palaso.IO.FileLock","PID":6816,"ProcessName":"testhost.net48","Timestamp":639111542518543262}
This probably shouldn't be checked in.
Src/xWorks/XhtmlDocView.cs line 692 at r1 (raw file):
{ #pragma warning disable 618 // suppress obsolete warning mediator.SendMessage("JumpToRecord", fieldLexEntry.Hvo);
This can be done through the Pub/Sub system instead of calling SendMessage(). Since SendMessage() executes immediately, you can have new code use Pub/Sub and old code still using the SendMessage() calls.
Src/xWorks/XhtmlDocView.cs line 703 at r1 (raw file):
Publisher.Publish(new PublisherParameterObject(EventConstants.JumpToField, arguments)); } Application.Idle += JumpToField;
Probably should talk to Jason about the best way to handle this. In general, I think we are trying to reduce our use of Idle.
Src/xWorks/xWorks.csproj line 98 at r1 (raw file):
<EmbeddedResource Include="Resources\Texts 32.ico" /> <EmbeddedResource Include="Resources\Words 32.ico" /> </ItemGroup>
Are the changes in this file intentional?
|
|
Previously, mark-sil (Mark Kidder) wrote…
We do want to avoid OnIdle, if the JumpToRecord goes through the Pub/Sub is the delay still necessary? Does it not work until the record has rendered? |
|
@jasonleenaylor: mediator.SendMessage("JumpToRecord", fieldLexEntry.Hvo) invokes JumpToRecord right away, so using Pub/Sub wouldn't solve the problem. |
mark-sil
left a comment
There was a problem hiding this comment.
@mark-sil reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: 9 of 10 files reviewed, 4 unresolved discussions (waiting on jasonleenaylor and jtmaxwell3).
Src/xWorks/XhtmlDocView.cs line 692 at r1 (raw file):
Previously, mark-sil (Mark Kidder) wrote…
This can be done through the Pub/Sub system instead of calling SendMessage(). Since SendMessage() executes immediately, you can have new code use Pub/Sub and old code still using the SendMessage() calls.
Sounds good, I agree with your comment #3 in the 'Top Level Discussions' section.
This fixes https://jira.sil.org/browse/LT-22333.
This code attempts to map Preview data elements to corresponding slices. There are three parts:
This change is