Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong image on pattern application wizard #29

Open
eclipse-diffmerge-bot opened this issue Jul 22, 2021 · 1 comment
Open

Wrong image on pattern application wizard #29

eclipse-diffmerge-bot opened this issue Jul 22, 2021 · 1 comment

Comments

@eclipse-diffmerge-bot
Copy link

Images of pattern on the "Apply pattern" wizard can be wrong when switching between patterns (e.g. using the Pattern combo box).

A systematic use-case can be obtained in debug mode by simulating a long thread that calculates and update a pattern image on the wizard while the pattern itself is not selected anymore. More specifically, at the beginning of the method org.eclipse.emf.diffmerge.patterns.ui.misc.AbstractPatternImageBuilderJob.run(IProgressMonitor) add an if condition as follows: if (the current pattern is pattern X) then make the thread sleep for 5s. With this modification, from the runtime application, do the following steps:

  1. Open the "Apply pattern" wizard
  2. Choose the pattern X
  3. Switch to another pattern (for example pattern Y) quickly (within 5s)
    => The image of pattern Y is displayed at first and then replaced by the image of pattern X even though the chosen pattern is pattern Y

🆔 ECLIPSE-511634 👷 minh.tu.ton.that 📅 2017-02-03 🔎 0.7.0

@eclipse-diffmerge-bot
Copy link
Author

olivier.constant commented on 2017-09-12

Confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants