Community
Participate
Working Groups
Currently, after a tool execution, all new graphical elements are selected (in the creation order). The last created graphical element is the primary selection. This behavior is not always the expected one. For example, just after a creation, the direct edit tool is available on the primary selection (the last created graphical element). If the direct edit tool must operate on the first created graphical element, the user must select the diagram and then select again the first created graphical element to direct edit. The goal of this feature is to propose a solution to handle this problematic: allow the specifier to choose the selected elements after a tool execution.
Created attachment 252301 [details] 464269Project.zip Problematic scenarios: These scenarios use the project 464269 (in 464269Project.zip) and reveal some selection problems. Move of a border node --------------------- * Import the project 464269 and open "newDiagram" * Ensure you are in manual refresh mode (preference Sirius/Automatic Refresh equals to false). * Use the tool "InOutEdge" between A and B --> A green out port is created on A, a blue in port is created on B and an edge is created between them. All of them are selected. * Without modification the selection, move the blue port on B. --> KO the green port is drag and drop on B. In this case, the specifier wants that only the edge is selected. Direct edit of a created node ----------------------------- * Import the project 464269 and open "newDiagram" * Ensure you are in manual refresh mode (preference Sirius/Automatic Refresh equals to false). * Use the tool "Create sub class with Views Creation" on B --> A subClass is created and also the hierarchy link bewteen the subClass and B. --> KO the direct edit is not possible on the subClass. You should first select the diagram and the select again the subClass to direct edit it. In this case, the specifier wants that only the subClass is selected. The other tool "Create sub class with forceRefresh" does the same modification but the view is created by the refresh and not by the tool. Partial selection of the created elements ----------------------------------------- * Import the project 464269 and open "newDiagram" * Ensure you are in manual refresh mode (preference Sirius/Automatic Refresh equals to false). * Use the tool "Composite pattern With Views Creation" on diagram --> KO the specifier wants that only the "Component" class is selected after the execution of the tool, to allow to direct edit it.
New Gerrit change created: https://git.eclipse.org/r/46181
Gerrit change https://git.eclipse.org/r/46181 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d8ac477147d385f28ba23ec47a0965c180401b8e
A spec is available here [1]. Do not hesitate to give feedback on it. [1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/plain/plugins/org.eclipse.sirius.doc/specs/proposal/464269_selectElementsAfterToolExecution/464269.html?id=d8ac477147d385f28ba23ec47a0965c180401b8e
New Gerrit change created: https://git.eclipse.org/r/46550
Gerrit change https://git.eclipse.org/r/46550 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a5556b5ede79c40f563843b54925e42baeb8313c
WARNING: this patchset contains 3640 new lines of code and may require a Contribution Questionnaire (CQ) if the author is not a committer on the project. Please see:https://wiki.eclipse.org/Project_Management_Infrastructure/Creating_A_Contribution_Questionnaire
New Gerrit change created: https://git.eclipse.org/r/51109
Gerrit change https://git.eclipse.org/r/50612 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a0f13eb71060917cf8d340b793212ab1245ce461
Gerrit change https://git.eclipse.org/r/50613 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5be107c34a8ba2e72d27203b92be004d748f28f5
fixed
New Gerrit change created: https://git.eclipse.org/r/53200
Gerrit change https://git.eclipse.org/r/53200 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3092d13542f7a067253168b243ccde11d7fffb18
New Gerrit change created: https://git.eclipse.org/r/53208
New Gerrit change created: https://git.eclipse.org/r/53211
Gerrit change https://git.eclipse.org/r/53211 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=73f6363dd011a81e63d989de3e35f0ec2af489db
Verified with 3.1.0.201509211006
Available in Sirius 3.1.0.