Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior on Undo after deleting of files+drag'n'drop #402

Open
lredor opened this issue May 24, 2024 · 1 comment
Open

Strange behavior on Undo after deleting of files+drag'n'drop #402

lredor opened this issue May 24, 2024 · 1 comment

Comments

@lredor
Copy link
Contributor

lredor commented May 24, 2024

I observed an unexpected behavior on an undo with the following scenario...

  • Import the project "DesignerTestProject" from DesignerTestProject.zip (it contains data used in org.eclipse.sirius.tests.swtbot.BorderedNodeCreationTest).
  • Delete the 3 files contained in this project
  • Expected: Dialogs are displayed to close the session and then to inform that the project is now invalid.
  • Copy the 3 files from /org.eclipse.sirius.tests.swtbot/data/unit/dragAndDrop/tc-1041 in this project
  • Open the diagram "new TC1041 representation 2 Blank"
  • Drag'n'drop "P1" from the Model Explorer view to the diagram
  • Expected: "P1" appears in the diagram.
  • Undo (through Ctrl+Z)
  • Expected: "P1" is deleted from the diagram.
  • Observed: The 3 files deleted in the second step are restored. A dialog appears to inform that the project is invalid (because it contains 2 aird files).
    2024-05-24_15h55_59
@lredor
Copy link
Contributor Author

lredor commented May 24, 2024

First remark: In the Edit menu, the Undo command is named "Undo Delete Resource" and not "Undo Drop Elements". Maybe the undo context is not correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant