Bug 437255 - Can't create a Representation from the Java Perspective
Summary: Can't create a Representation from the Java Perspective
Status: RESOLVED FIXED
Alias: None
Product: Ecoretools
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows All
: P3 major
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 440301 437251
Blocks:
  Show dependency tree
 
Reported: 2014-06-12 05:00 EDT by Cedric Brun CLA
Modified: 2014-07-24 04:56 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 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.