Bug 437255

Summary: Can't create a Representation from the Java Perspective
Product: [Modeling] Ecoretools Reporter: Cedric Brun <cedric.brun>
Component: GeneralAssignee: Project Inbox <ecore-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows All   
Whiteboard:
Bug Depends on: 440301, 437251    
Bug Blocks:    

Description Cedric Brun CLA 2014-06-12 05:00:15 EDT
When a user try to create a Diagram from an .ecore file from the Java perspective (or any other perspective which will not trigger the instanciation of the Sirius content providers) the wizard fails with a NPE.
Comment 1 Cedric Brun CLA 2014-06-12 05:03:48 EDT
Commits 
http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/commit/?id=e0f6e1474d274b01d060d15c3b279c2eb4aec848
and 
http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/commit/?id=966c2467a20cde61327c1535c6f8f0bb025deff4

are introducing a workaround to this : explicitely "preparing the work" for Sirius with calls to 
		IEditingSession uiSession = SessionUIManager.INSTANCE
				.getOrCreateUISession(existingSession);
		uiSession.open();

It is built in http://download.eclipse.org/ecoretools/updates/nightly/2.0.0-N20140612-043843 and has been tested successfully on windows.
Comment 2 Cedric Brun CLA 2014-06-26 08:49:50 EDT
The workaround is shipped through http://download.eclipse.org/ecoretools/updates/nightly/2.0.x/luna and through the discovery view in the modeling package.