Bug 546259: SWTBotEditor.isActive() returns true when not active part

SWTBotEditor.isActive() now returns true only if the editor is the
active part.

SWTBotEditor.isActiveEditor() is added and returns true if the editor is
the active editor, even if it is not the active part.

SWTWorkbenchBot.activePart() is added and returns the active part, which
may be a view or an editor.

Change-Id: I696da9f9462b8dbeca51ea5a0b4ca52142b81a66
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
4 files changed
tree: 30f8444eada1bdcdd00fef09a7dd6c7db967644f
  1. artwork/
  2. devtools/
  3. examples/
  4. org.eclipse.swt.examples/
  5. org.eclipse.swtbot/
  6. org.eclipse.swtbot.ant.junit/
  7. org.eclipse.swtbot.e4.finder/
  8. org.eclipse.swtbot.e4.finder.test/
  9. org.eclipse.swtbot.eclipse/
  10. org.eclipse.swtbot.eclipse.core/
  11. org.eclipse.swtbot.eclipse.dsl/
  12. org.eclipse.swtbot.eclipse.finder/
  13. org.eclipse.swtbot.eclipse.finder.test/
  14. org.eclipse.swtbot.eclipse.gef/
  15. org.eclipse.swtbot.eclipse.gef.finder/
  16. org.eclipse.swtbot.eclipse.junit.headless/
  17. org.eclipse.swtbot.eclipse.spy/
  18. org.eclipse.swtbot.eclipse.test.junit/
  19. org.eclipse.swtbot.eclipse.test.junit4/
  20. org.eclipse.swtbot.eclipse.ui/
  21. org.eclipse.swtbot.eclipse.ui.test/
  22. org.eclipse.swtbot.forms/
  23. org.eclipse.swtbot.forms.finder/
  24. org.eclipse.swtbot.forms.finder.test/
  25. org.eclipse.swtbot.generator/
  26. org.eclipse.swtbot.generator.client/
  27. org.eclipse.swtbot.generator.feature/
  28. org.eclipse.swtbot.generator.jdt/
  29. org.eclipse.swtbot.generator.jdt.test/
  30. org.eclipse.swtbot.generator.rules.workbench/
  31. org.eclipse.swtbot.generator.test/
  32. org.eclipse.swtbot.generator.ui/
  33. org.eclipse.swtbot.go/
  34. org.eclipse.swtbot.ide/
  35. org.eclipse.swtbot.junit4_x/
  36. org.eclipse.swtbot.nebula.gallery/
  37. org.eclipse.swtbot.nebula.gallery.finder/
  38. org.eclipse.swtbot.nebula.gallery.finder.test/
  39. org.eclipse.swtbot.nebula.nattable/
  40. org.eclipse.swtbot.nebula.nattable.finder/
  41. org.eclipse.swtbot.nebula.nattable.finder.test/
  42. org.eclipse.swtbot.releng/
  43. org.eclipse.swtbot.swt.demo/
  44. org.eclipse.swtbot.swt.finder/
  45. org.eclipse.swtbot.swt.finder.test/
  46. org.eclipse.swtbot.swt.finder.test.keyboards/
  47. org.eclipse.swtbot.test/
  48. org.eclipse.swtbot.updatesite/
  49. org.eclipse.ui.forms.examples/
  50. .git-svn-authors
  51. .gitignore
  52. .project
  53. CONTRIBUTING.md
  54. pom.xml
  55. README.md
README.md

SWTBot

SWTBot is a Java API that interacts with SWT by using high-level operations. It is generally use to write UI tests efficiently since the grain of the API is the same grain as UI operation. It makes easier to transform a user scenario to an automated tests.

Documentation & links

http://wiki.eclipse.org/SWTBot

Contributing

GitHub tracker and pull requests are currently not supported by the contribution process.

Please read http://wiki.eclipse.org/SWTBot/Contributing to know how to interact well with the community. For further questions about contributing to SWTBot, please send a mail to swtbot-dev@eclipse.org .