Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 480773

Summary: Manage better editor opening on Eclipse restart with failing session opening
Product: [Modeling] Sirius Reporter: Esteban DUGUEPEROUX <esteban.dugueperoux>
Component: CoreAssignee: Esteban DUGUEPEROUX <esteban.dugueperoux>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: florian.barbin, laurent.redor, pierre-charles.david
Version: 3.0.0Keywords: triaged
Target Milestone: 3.1.2   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/59002
https://git.eclipse.org/r/59193
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=366827e38895db0dcc2f20c694a07417b5ed509e
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7bf70fa2cb36dc5555e36dfdd782a84a434d9783
https://git.eclipse.org/r/59476
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=36ca1a9ce46db76bab32641b43303347d518ad7c
Whiteboard:
Attachments:
Description Flags
Sample project to reproduce
none
Exceptions logged on Eclipse restart. none

Description Esteban DUGUEPEROUX CLA 2015-10-27 09:27:44 EDT
Currently when restarting an Eclipse with an opened editor on content which can't be accessed, an empty session is created.
This bugzilla is to improve that, by avoiding session creation and give better feedback to end-user to displaying the reason of the failing session opening in the editor.
Comment 1 Eclipse Genie CLA 2015-10-27 09:29:17 EDT
New Gerrit change created: https://git.eclipse.org/r/59002
Comment 2 Esteban DUGUEPEROUX CLA 2015-10-27 10:42:48 EDT
Created attachment 257546 [details]
Sample project to reproduce

Scenario to reproduce:
1. Import the attached project sample,
2. Start an Eclipse with all representations opened.
3. Close Eclipse with these opened editors.
4. Remove Modeling Project from filesystem or make it non readable.
5. Restart Eclipse => we have many exceptions and the ErrorEditorPart is displayed with a stack. We could have the standard dialect editor with a more readable message.
Comment 3 Esteban DUGUEPEROUX CLA 2015-10-27 10:43:33 EDT
Created attachment 257547 [details]
Exceptions logged on Eclipse restart.
Comment 4 Esteban DUGUEPEROUX CLA 2015-10-27 11:43:16 EDT
To validate replay scenario of comment 2 and restore project from filesystem before trying session reopening by project opening.
Comment 5 Eclipse Genie CLA 2015-10-29 04:03:35 EDT
New Gerrit change created: https://git.eclipse.org/r/59193
Comment 7 Esteban DUGUEPEROUX CLA 2015-11-02 02:56:04 EST
Fixed on master.
Comment 9 Florian Barbin CLA 2015-11-02 09:31:45 EST
Verified on Sirius 3.1.2.201511020854
Comment 10 Eclipse Genie CLA 2015-11-02 09:35:30 EST
New Gerrit change created: https://git.eclipse.org/r/59476
Comment 12 Pierre-Charles David CLA 2015-11-10 08:13:10 EST
Available in Sirius 3.1.2.