[549918] Fix ClassCastException when selecting a tool in a diagram extension

This reverts commit 2a2a7ee1921adeed877a1a8b877212e745878ce6, which
can cause ClassCastExceptions: the two code blocks that were merged
into one were not exactly the same, one handled
RepresentationDescription (and casts to that), and the other handles
RepresentationExtensionDescription, which can *not* be cast to
RepresentationDescription.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549918
Change-Id: Ib86d416fd45eaa1db0fdd1f935e193b7c0ad1e73
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
1 file changed
tree: f711a5a96b66276fe165cd697b4986096a670f09
  1. .gitattributes
  2. .gitignore
  3. .travis.yml
  4. CONTRIBUTING
  5. Jenkinsfile
  6. LICENSE
  7. NOTICE
  8. README.md
  9. build.sh
  10. packaging/
  11. plugins/
  12. pom.xml
  13. releng/
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.