Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367212 - Error when creating a new model with a papyrus model already opened
Summary: Error when creating a new model with a papyrus model already opened
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 11:21 EST by Mathieu Velten CLA
Modified: 2013-07-05 11:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.