| Summary: | Exception when selecting part of a container already selected | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> |
| Component: | Diagram | Assignee: | Maxime Porhel <maxime.porhel> |
| Status: | CLOSED FIXED | QA Contact: | Jessy Mallet <jessy.mallet> |
| Severity: | major | ||
| Priority: | P3 | CC: | jessy.mallet, maxime.porhel |
| Version: | 3.0.0 | Keywords: | triaged |
| Target Milestone: | 3.1.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/55748 https://git.eclipse.org/r/55761 https://git.eclipse.org/r/55852 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ee528044b8de2d0992ab458e5a2c925893618b8e https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9cf1783c487c077ba2915922ec5e8a4679a30ce0 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=af1d22c7376477e55a3dc84e844f7be1ff527026 |
||
| Whiteboard: | |||
| Bug Depends on: | 477208 | ||
| Bug Blocks: | |||
|
Description
Pierre-Charles David
The getParent().isSelectable() == EditPart.SELECTED has been introduce before the move to open source. This test is weird, it make the name part selectable only when the main part is in secondary selection (see EditPart.SELECTED vs EditPart.SELECTED_PRIMARY). Furthermore, the container/list/region name parts cannot be moved and the direct edit works. So we can simply always return false in isSelectable(). The IllegalArgumentException occurS because the drag tracker saw the name edit part as a selectable part (its parent is secondary selected) but during the set selection the AbstractEditPartView call primDeselectAll() which change the isSelectable() status of the DDiagramElementContainer name edit parts. New Gerrit change created: https://git.eclipse.org/r/55761 New Gerrit change created: https://git.eclipse.org/r/55852 Gerrit change https://git.eclipse.org/r/55852 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ee528044b8de2d0992ab458e5a2c925893618b8e Gerrit change https://git.eclipse.org/r/55748 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9cf1783c487c077ba2915922ec5e8a4679a30ce0 Gerrit change https://git.eclipse.org/r/55761 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=af1d22c7376477e55a3dc84e844f7be1ff527026 Fixed by af1d22c7376477e55a3dc84e844f7be1ff527026. Validated with Sirius 3.1.0.201509241504 Available in Sirius 3.1.0. |