Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Pressing Save while the in diagram editor is open closes the editor #47

Closed
GoogleCodeExporter opened this issue Apr 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

The in diagram editor should stay open if CTRL-S is pressed during text editing.

Original issue reported on code.google.com by A.Muel...@googlemail.com on 29 Sep 2014 at 2:54

@andreasmuelder andreasmuelder changed the title [Usability] Pressing Save while the in diagram editor is open closes the editor Pressing Save while the in diagram editor is open closes the editor Jul 14, 2015
@terfloth terfloth added this to the Backlog milestone Oct 16, 2015
@andreasmuelder andreasmuelder modified the milestones: S32, Backlog Sep 13, 2016
@BeckmaR
Copy link
Contributor

BeckmaR commented Sep 13, 2016

This is most likely not easily achieved. Eclipse itself handels the resource that is saved and closes all widgets way before any yakindu class gets called. The editing text window is already closed as soon as our editor's function DoSave is called. A SaveableHelper takes care of this.

@BeckmaR BeckmaR closed this as completed Sep 13, 2016
@BeckmaR
Copy link
Contributor

BeckmaR commented Sep 13, 2016

Reopening, there has to be a way, because form-based editors are able to keep the focus when saving.

@BeckmaR BeckmaR reopened this Sep 13, 2016
@BeckmaR
Copy link
Contributor

BeckmaR commented Sep 13, 2016

The main problem is that, for example, a state has an XTextStyledTextEditor that has the focus. When the focus is lost, this element is destroyed. When the focus should come back, the receiving element has gone away, and can't take the focus back. Closing for now.

@BeckmaR BeckmaR closed this as completed Sep 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants