Community
Participate
Working Groups
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.
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.
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.