Community
Participate
Working Groups
I'm creating RCP application in eclipse 4 based on Compatibility layer. When i try to close unsaved a part then unsaved changes Dialog comes but it doesn't have following - The unsaved changes dialog has no title - The text says "Select the parts to save" - Its not resizeable For more details see the attachment. Is there is any way or any workaround to put some title in that dialog. Thanks, Sumit
Created attachment 240575 [details] Unsaved Part Dialog
Created attachment 240586 [details] Save Resources How do you close the editors to get the dialog? CTRL+SHIFT+W? When I use this the dialog title says Save Resources Please try against our M6 candidate, http://download.eclipse.org/eclipse/downloads/drops4/I20140305-2000/ PW
Hi Paul, This is not editor its Part(e4). I'm using compatibility layer. I my RCP i have one part and if you set that part as dirty and try to close it without saving it then you will get this dialog.
Let me know if you are not able to reproduce it then I'll create and attach a small RCP.
(In reply to sumit singh from comment #4) > Let me know if you are not able to reproduce it then I'll create and attach > a small RCP. Yes, please. It's not clear what kind of part you mean, if you are using the compatibility layer the problem should show up in the IDE. PW
Created attachment 240624 [details] sample project Hi Paul, Run the application and if you will close the part(In this application there is only one part) you will get the same dialog.
Thanks Sumit. The problem is org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.SaveablePartPromptDialog needs an NLSed title set on its Shell. See https://wiki.eclipse.org/Platform_UI/How_to_Contribute PW
Proposed Solution: https://git.eclipse.org/r/#/c/24119/
Thanks Simon, applied with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1724325cc2035bcdfc4bf3e50f531cdf1e2f2e30
Why was isResizable overridden in the patch? How does that include the dialog title? PW
(In reply to Paul Webster from comment #10) > Why was isResizable overridden in the patch? How does that include the > dialog title? > > PW See the bug description from comment #1.
While I don't mind a simple fix going in with this bug, but the bug title doesn't make it clear that it's been included. In the future, items like that can be included in the commit message: Bug 429729 - [Workbench] Prompt to save Unsaved Part has no title Added title to dialog. Also made the dialog resizable. Signed-off-by: ...etc
Is this actually a DUP of bug 431367 ? If so are we sure we havne't fixed it in two places ?