Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320635 - Could not open an existing diagram
Summary: Could not open an existing diagram
Status: CLOSED FIXED
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 0.7.0   Edit
Assignee: Michael Wenz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 10:13 EDT by Alexis Muller CLA
Modified: 2010-10-07 03:07 EDT (History)
1 user (show)

See Also:
michael.wenz: iplog+


Attachments
Correction. Replace createFileURI by createPlatformResourceURI (983 bytes, text/plain)
2010-07-22 10:13 EDT, Alexis Muller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Muller CLA 2010-07-22 10:13:31 EDT
Created attachment 174979 [details]
Correction. Replace createFileURI by createPlatformResourceURI

An exception is throw when opening an existing diagram in the workspace.

For example :

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: /fr.inria.mdfactory.chain.test/src/diagrams/new diagram.diagram (No such file or directory)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:216)
	at org.eclipse.graphiti.ui.editor.DiagramEditorInput.getEObject(DiagramEditorInput.java:610)
	at org.eclipse.graphiti.ui.editor.DiagramEditorInput.setEditorEditingDomain(DiagramEditorInput.java:512)
	at org.eclipse.graphiti.ui.editor.DiagramEditorInput.<init>(DiagramEditorInput.java:239)
	at org.eclipse.graphiti.ui.editor.DiagramEditorFactory.createEditorInput(DiagramEditorFactory.java:68)
	at org.eclipse.graphiti.ui.internal.editor.DiagramEditorInternal.init(DiagramEditorInternal.java:1055)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
...

A possible correction, in the attached patch.

PS : Very promising project ! Many thanks.
Comment 1 Michael Wenz CLA 2010-07-26 07:03:23 EDT
Hi Alexis,

I have fixed this bug today in the CVS. Thanks for the bug report and the fix!

-Michael
Comment 2 Michael Wenz CLA 2010-09-08 09:44:04 EDT
Added version and target
Comment 3 Michael Wenz CLA 2010-10-07 03:07:32 EDT
Part of 0.7.0 release