[581336] Fix o.e.s.tests.swtbot.tree.TreeUIPermissionAuthorityTests

In commit [1], there is a regression detected by the tests from
org.eclipse.sirius.tests.swtbot.tree.TreeUIPermissionAuthorityTests.
This regression concerns the permission authority and the fact that the
tree item retrieves its previous collapse/expand state if the permission
authority forbids the collapse/expand. This regression is not really
visible by end-user. Indeed, these tests go through a path not really
accessible by end-user.

This commit correctly handles the case covered by the automatic tests,
but not representative of the real life.

In conclusion for end-user:
* With or without this commit, the graphical collapse/expand is reverted
if it is done with the left or right key.
* With or without this commit, the graphical collapse/expand is not
reverted if it is done with a mouse click. This problem already exists
before bug 581336 and bug 580934 [2].

[1] https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=93e62a724a8c6c636973913137b7565a31af2acb
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=580934

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=581336
Change-Id: I1773d731a1382323679c4b4261467160e3ef3059
3 files changed
tree: 8e53a83432ec2fecd988a899cc58bdb3f3242d16
  1. packaging/
  2. plugins/
  3. releng/
  4. .gitattributes
  5. .gitignore
  6. build.sh
  7. CONTRIBUTING
  8. Jenkinsfile
  9. LICENSE
  10. NOTICE
  11. pom.xml
  12. README.md
README.md

Eclipse Sirius

Build Status

Sirius enables the specification of a modeling workbench in terms of graphical, table or tree editors with validation rules and actions using declarative descriptions.

For more details see the project page and the main wiki page.

Building

The build uses Tycho. To launch a complete build, issue

mvn clean package

from the top-level directory. The resulting update-site (p2 repository) can be found in packaging/org.eclipse.sirius.update/target/repository.

By default the build uses a Neon-based target platform. You can specify a different platform like this:

mvn clean package -Dplatform-version-name=name

where name can be any of the following values:

  • mars (Eclipse 4.5)
  • neon (Eclipse 4.6, the default and reference target platform)
  • canary (uses nightly builds of all our dependencies, only used for testing)

The corresponding target platform definitions can be found in releng/org.eclipse.sirius.targets.