Hello,
I’m still a newbie eclipse application developer so forgive me if my questions are obvious.
I am trying to build a sirius application and I am using capella project as an example of eclipse 4 application built to use sirius.
From the sources I can’t see an e4xmi application file, so I wonder if this is a true eclipse 4 application ?
My guess is that capella uses mainly eclipse 3 plugins (as far as I can see eclipse declarations from the plugin.xml files from the sources), is that correct ?
More particularly I am facing the following exception :
java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:102)
at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.OpenRepresentationsFileJob.scheduleNewWhenPossible(OpenRepresentationsFileJob.java:137)
at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.loadAndOpenRepresentationsFiles(ModelingProjectManagerImpl.java:199)
at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.loadAndOpenRepresentationsFiles(ModelingProjectManagerImpl.java:152)
…
I’m asking the knowledge of those who have made work capella as an Eclipse 4 application with sirius, from what I understand PlatformUI.createAndRunWorkbench must be called from the startup of the application, but to my understanding this is an eclipse 3 call, so how did you make it work with an eclipse 4 application ?
Your help will be very much appreciated.