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

Bug 367212

Summary: Error when creating a new model with a papyrus model already opened
Product: [Modeling] Papyrus Reporter: Mathieu Velten <mathieu.velten>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mathieu Velten CLA 2011-12-20 11:21:47 EST
An error "Cannot open input element" happens when creating a new model with at least one diagram selected in the wizard, and a papyrus model already opened.
This also corrupts the previous editor with a org.eclipse.core.runtime.CoreException.

This is kind of a design problem because the OpenDiagramCommand try to get the IPageMngr using the ServiceRegistry first, which is the one of the previous editor (an IPageMngr is created if the ServiceRegistry is not available).

A central place should be available to access/create automatically an IPageMngr associated with a resourceSet.
Comment 1 Mathieu Velten CLA 2011-12-20 11:24:33 EST
A workaround has been commited (rev 6521).
Comment 2 Camille Letavernier CLA 2013-07-05 11:15:24 EDT
Cannot reproduce in the current version.